Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25698

AuditBackend are initialized twice

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.10
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Audit

      Description

      The NXAuditEventsService call explicitly AuditBackend.onApplicationStarted twice
      once on start and once afterStart:

      This can be viewed in log by having twice the info log

      [org.nuxeo.elasticsearch.audit.ESAuditBackend] Activate Elasticsearch backend for Audit
      

      The code path are:

              at org.nuxeo.elasticsearch.audit.ESAuditBackend.getClient(ESAuditBackend.java:164)
              at org.nuxeo.elasticsearch.audit.ESAuditBackend.onApplicationStarted(ESAuditBackend.java:188)
              at org.nuxeo.ecm.platform.audit.service.NXAuditEventsService.start(NXAuditEventsService.java:105)
              at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.start(RegistrationInfoImpl.java:382)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:709)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:689)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:792)
              at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:460)
              at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:475)
              at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:223)
              at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:225)
              at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:124)
              at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:124)
      

      Then

              at org.nuxeo.elasticsearch.audit.ESAuditBackend.getClient(ESAuditBackend.java:164)
              at org.nuxeo.elasticsearch.audit.ESAuditBackend.onApplicationStarted(ESAuditBackend.java:188)
              at org.nuxeo.ecm.platform.audit.service.NXAuditEventsService$1.afterStart(NXAuditEventsService.java:116)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl$Listeners.afterStart(ComponentManagerImpl.java:1136)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:693)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:792)
              at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:460)
              at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:475)
              at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:223)
              at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:225)
              at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:124)
              at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:124)
              at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      

      This might have been introduced by NXP-23751 (since 9.10)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: