Timothy Bish created QPIDJMS-251:
------------------------------------
Summary: Thread unsafe use of MessageListener and state variable
in JmsMessageConsumer
Key: QPIDJMS-251
URL: https://issues.apache.org/jira/browse/QPIDJMS-251
Project: Qpid JMS
Issue Type: Bug
Components: qpid-jms-client
Affects Versions: 0.11.1
Reporter: Timothy Bish
Assignee: Timothy Bish
Fix For: 0.20.0
The assignment of the MessageListener in the MessageConsumer class is done to a
non-volatile value that can result in the initial run of the message dispatch
thread missing the value and delay dispatch. Likewise the code uses a state
variable to track started state but the value is not accessed in a thread safe
way and the state can be missed. The started value is unnecessary as the
internal message queue instance maintains a thread safe running state that can
be used for the same information.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]