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

UimaContextHolder threadlocal can leak

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0SDK
    • Core Java Framework
    • None

    Description

      When a UIMA context is set in the UimaContextHolder e.g. when a component initializes or processes - and then the component spawns a new thread, then the UimaContextHolder is inherited by the spawned thread. If the thread does not get garbage collected (e.g. because it is part of a global executor pool), then the UimaContext held by the UimaContextHolder can live way beyond its projected life-time without being garbage-collectable.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rec Richard Eckart de Castilho
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment