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

Avoid pending worker in redis to start before the runtime is started

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 6.0, 7.10, 8.1
    • Fix Version/s: None
    • Component/s: Events / Works

      Description

      When worker are pending in redis and we restart nuxeo, workers tries to starts before the runtime is started so it gets NPE while trying to access ES client for example:

      Runtime starting at 03:31:57,056

      2016-02-12 03:31:57,056 INFO  [localhost-startStop-1] [org.nuxeo.osgi.application.loader.FrameworkLoader] 
      ======================================================================
      = Starting Nuxeo Framework
      =========================================================
      

      Worker NPE at 03:32:10,584

      2016-02-12 03:32:10,584 ERROR [Nuxeo-Work-default-3] [org.nuxeo.ecm.core.event.impl.AsyncEventExecutor] Failed to execute async event null on listener nuxeoDriveVirtualEventLoggerListener
      java.lang.NullPointerException
          at org.nuxeo.elasticsearch.ElasticSearchComponent.getClient(ElasticSearchComponent.java:234)
      

      Runtime started at 03:32:38,835

      2016-02-12 03:32:38,835 INFO  [localhost-startStop-1] [org.nuxeo.runtime.osgi.OSGiRuntimeService] Nuxeo Platform Started
      ======================================================================
      = Component Loading Status: Pending: 0 / Unstarted: 0 / Total: 692
      ======================================================================
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: