You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (JIRA)" <ji...@apache.org> on 2015/10/05 17:44:28 UTC

[jira] [Created] (QPIDJMS-120) viewer may not see previously updated running/closed state on local queue

Robbie Gemmell created QPIDJMS-120:
--------------------------------------

             Summary: viewer may not see previously updated running/closed state on local queue
                 Key: QPIDJMS-120
                 URL: https://issues.apache.org/jira/browse/QPIDJMS-120
             Project: Qpid JMS
          Issue Type: Bug
          Components: qpid-jms-client
    Affects Versions: 0.5.0
            Reporter: Robbie Gemmell
            Assignee: Robbie Gemmell
            Priority: Minor
             Fix For: 0.6.0


The client keeps a local queue for messages as they arrive. Most of the methods in the class synchronize around various state governing the behaviour ot the queue, such as whether it is 'running' or 'closed'. It is possible to view this state via isClosed() and isRunning() methods, hopwever these do not synchronise in the same way, meaning one thread (e.g the app thread) viewing these states may not see a previous update by another thread (e.g the client).

These methods are only used in a couple of places, and reading a stale value will typically only lead to further use of the queue (using methods which are synchronized around the state), so this shouldnt really cause significant issue, but it would be better to ensure the updates are seen promptly.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org