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

Problems with BoundedQueue.dequeue(timeout)

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2
    • Collection Processing
    • None

    Description

      In the CPM, the method BoundedQueue.dequeue(timeout) is supposed to wait for the specified timeout for a CAS to become available. However from a code inspection it looks like there are problems with its synchronization. If multiple threads are waiting, and one CAS becomes available, then all of the threads will wake up, but only one will get the CAS. The others will return null prematurely, without having exhausted their timeout.

      Also there may be a problem with chunking enabled and a chunk timeout is specified, where the timeout does not actually do anything except log a message.

      Details here: http://www.mail-archive.com/uima-dev@incubator.apache.org/msg02033.html

      Attachments

        Activity

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

          People

            alally Adam P. Lally
            alally Adam P. Lally
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment