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

Don't run repository intialization handlers too early

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.3-SNAPSHOT
    • Fix Version/s: 9.3
    • Component/s: Core, Runtime

      Description

      Repository intialization handlers (subclasses of RepositoryInitializationHandler, and especially RouteModelsInitializator) run too early: they may do work that need to be logged to the Audit through a sync post-commit event that doesn't wait for all bundles to be started, including the Audit itself.

      The main symptom is this log during startup:

      ERROR [Nuxeo-Event-PostCommit-1] [NXAuditEventsService]
      Can not provide service org.nuxeo.ecm.platform.audit.api.AuditLogger since backend is undefined
      

      Let's run the initialization handlers in afterStart to avoid this.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h