UIMA
  1. UIMA
  2. UIMA-2309

UIMA AS not calling AE.destroy() method on the same thread that initialized the AE

    Details

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

      Description

      When stopping, UIMA AS doesnt call AE.destroy() method on the same thread that was used to initialize the AE. Also, UIMA AS thread factory (source of threads which process CASes) sets each thread as daemon resulting in a premature exit of a process. The jvm is free to exit if all threads complete their run() method or all remaining threads in the jvm are daemon threads. This premature exit prevents UIMA AS from completing call to destroy() method on each AE. Refactor code involved in UIMA AS process shutdown.

        Activity

        Hide
        Jerry Cwiklik added a comment -

        Modified to call AE.destroy() from the same thread that called initialize()

        Show
        Jerry Cwiklik added a comment - Modified to call AE.destroy() from the same thread that called initialize()

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development