Problems with BoundedQueue.dequeue(timeout)
-------------------------------------------
Key: UIMA-303
URL: https://issues.apache.org/jira/browse/UIMA-303
Project: UIMA
Issue Type: Bug
Components: Collection Processing
Reporter: Adam Lally
Priority: Minor
Fix For: 2.2
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/[email protected]/msg02033.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.