You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/10/05 17:52:26 UTC

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

    [ https://issues.apache.org/jira/browse/QPIDJMS-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14943561#comment-14943561 ] 

ASF subversion and git services commented on QPIDJMS-120:
---------------------------------------------------------

Commit 89aeac1528bf521f8d52c59def3a5011c58d8e67 in qpid-jms's branch refs/heads/master from Robert Gemmell
[ https://git-wip-us.apache.org/repos/asf?p=qpid-jms.git;h=89aeac1 ]

QPIDJMS-120: update the flags to use [private] volatile fields


> 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