UIMA
  1. UIMA
  2. UIMA-1872

UIMA AS Primitive Service ResourceInitializationException is Silently Handled

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3AS
    • Fix Version/s: 2.3.1AS
    • Component/s: Async Scaleout
    • Labels:
      None

      Description

      When deploying Uima AS Primitive service, a custom ThreadFactory is used to initialize each AE instance in its own thread. Once initialized, the AE instance is pinned to its thread. Subsequent process() calls will be done in the same thread that was used to initialize an AE. An exception thrown by AE during initialization propagates all the way to the custom ThreadFactory where it is silently ignored. Three bugs here:

      1) The exception must be logged in the UimaAsThreadFactory.newThread() method.
      2) Controller's callback listener must be called to notify the listener of initialization exception
      3) There is no testcase in extended test suite to expose this bug

        Activity

        Jerry Cwiklik created issue -
        Jerry Cwiklik made changes -
        Field Original Value New Value
        Description When deploying Uima AS service, a custom ThreadFactory is used to initialize each AE instance in its own thread. Once initialized, the AE instance is pinned to its thread. Subsequent process() calls will be done in the same thread that was used to initialize an AE. An exception thrown by AE during initialization propagates all the way to the custom ThreadFactory where it is *silently* ignored. Two bugs here:

        1) The exception must be logged in the UimaAsThreadFactory.newThread() method.
        2) Controller's callback listener must be called to notify the listener of initialization exception
        When deploying Uima AS service, a custom ThreadFactory is used to initialize each AE instance in its own thread. Once initialized, the AE instance is pinned to its thread. Subsequent process() calls will be done in the same thread that was used to initialize an AE. An exception thrown by AE during initialization propagates all the way to the custom ThreadFactory where it is *silently* ignored. Three bugs here:

        1) The exception must be logged in the UimaAsThreadFactory.newThread() method.
        2) Controller's callback listener must be called to notify the listener of initialization exception
        3) There is no testcase in extended test suite to expose this bug
        Jerry Cwiklik made changes -
        Description When deploying Uima AS service, a custom ThreadFactory is used to initialize each AE instance in its own thread. Once initialized, the AE instance is pinned to its thread. Subsequent process() calls will be done in the same thread that was used to initialize an AE. An exception thrown by AE during initialization propagates all the way to the custom ThreadFactory where it is *silently* ignored. Three bugs here:

        1) The exception must be logged in the UimaAsThreadFactory.newThread() method.
        2) Controller's callback listener must be called to notify the listener of initialization exception
        3) There is no testcase in extended test suite to expose this bug
        When deploying Uima AS Primitive service, a custom ThreadFactory is used to initialize each AE instance in its own thread. Once initialized, the AE instance is pinned to its thread. Subsequent process() calls will be done in the same thread that was used to initialize an AE. An exception thrown by AE during initialization propagates all the way to the custom ThreadFactory where it is *silently* ignored. Three bugs here:

        1) The exception must be logged in the UimaAsThreadFactory.newThread() method.
        2) Controller's callback listener must be called to notify the listener of initialization exception
        3) There is no testcase in extended test suite to expose this bug
        Hide
        Jerry Cwiklik added a comment -

        Modified UimaAsThreadFactory to log a Throwable that may occur while initializing AE. Also, added code to notify listeners of initialization failure via a callback. Added a new testcase to the extended test suite to force initialization failure of a AE

        Show
        Jerry Cwiklik added a comment - Modified UimaAsThreadFactory to log a Throwable that may occur while initializing AE. Also, added code to notify listeners of initialization failure via a callback. Added a new testcase to the extended test suite to force initialization failure of a AE
        Jerry Cwiklik made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Hide
        Jerry Cwiklik added a comment -

        Assigned Fix Version

        Show
        Jerry Cwiklik added a comment - Assigned Fix Version
        Jerry Cwiklik made changes -
        Fix Version/s 2.3.1AS [ 12315335 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        1d 22h 17m 1 Jerry Cwiklik 16/Sep/10 14:46

          People

          • Assignee:
            Jerry Cwiklik
            Reporter:
            Jerry Cwiklik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development