Uploaded image for project: 'Qpid JMS'
  1. Qpid JMS
  2. QPIDJMS-251

Thread unsafe use of MessageListener and state variable in JmsMessageConsumer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.1
    • 0.20.0
    • qpid-jms-client
    • None

    Description

      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.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: