Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5877

UIMA-DUCC: Pull service not failing fast on initialization error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-Ducc
    • DUCC
    • None

    Description

      With multiple threads initializing, the protocol handler serializes call to processor.initialize() so that only one thread is allowed to initialize at a time.

      If initialization fails the design goal is for the remaining threads to fail-fast if a previous thread failed. The check for error was in the wrong place in the DefaultServiceProtocolHandler.initialize(). Modify to do the check after a thread acquires a lock as in the below snippet:

      try {
          // use a lock to serialize initialization one thread at a time
          initLock.lock();
          if (initError)

      {         return;     }

          processor.initialize();

      ...

       

       

       

       

      Attachments

        Activity

          People

            cwiklik Jaroslaw Cwiklik
            cwiklik Jaroslaw Cwiklik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: