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 (Commented) (JIRA)" <ji...@apache.org> on 2012/02/01 13:38:58 UTC

[jira] [Commented] (QPID-3790) Add a new method getQueueDepth(AMQDestionation, boolean) into AMQSession to allow syncing the session before sending QueueQuery command

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

Robbie Gemmell commented on QPID-3790:
--------------------------------------

Change itself looks fine, but I would use QpidTestCase to tidy up the system property manipulation.
                
> Add a new method getQueueDepth(AMQDestionation, boolean) into AMQSession to allow syncing the session before sending QueueQuery command
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3790
>                 URL: https://issues.apache.org/jira/browse/QPID-3790
>             Project: Qpid
>          Issue Type: New Feature
>          Components: Java Client
>    Affects Versions: 0.15
>            Reporter: Alex Rudyy
>            Assignee: Robbie Gemmell
>             Fix For: 0.15
>
>         Attachments: 0001-QPID-3790-Add-a-method-AMQSession.getQueueDepth-AMQD.patch
>
>
> The number of existing tests fails sporadically in DUPS_OK mode by relying on fact that method AMQSession.getQueueDepth(AMQDestionation) returns the correct result.
> In case of DUPS_OK, a message acknowledgment can be sent as part AMQSession.getQueueDepth(AMQDestionation) before sending QueueQuery command.
> Currently session does not sync between sending acknowledgments(MessageAccept)  and QueueQuery commands.
> As result of it QueueQuery command results can be returned before MessageAccept is processed on the broker. In  this case QueueQuery results might contain incorrect messageCount value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org