You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew MacBean (JIRA)" <ji...@apache.org> on 2014/06/03 13:05:01 UTC

[jira] [Comment Edited] (QPID-5798) Intermittant failure of FailoverBehaviourTest due to race condition

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

Andrew MacBean edited comment on QPID-5798 at 6/3/14 11:04 AM:
---------------------------------------------------------------

Patch to add an AMQSession.sync() call for the non transacted acknowledgment mode cases to avoid potential race condition and subsequent test failure.


was (Author: macbean):
Patch to add sync call for the non transacted ack mode case to avoid race.

> Intermittant failure of FailoverBehaviourTest due to race condition
> -------------------------------------------------------------------
>
>                 Key: QPID-5798
>                 URL: https://issues.apache.org/jira/browse/QPID-5798
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: 0.26
>            Reporter: Andrew MacBean
>         Attachments: 0001-QPID-5798-Intermittant-failure-of-FailoverBehaviourT.patch
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> The test org.apache.qpid.client.failover.FailoverBehaviourTest.testAutoAcknowledgedQueueBrowserCloseWhileFailover is intermittantly failing under the BDB 0-9 profile.
> The issue appears to be that the prepareQueueBrowser() method fails to take into account that without a forced sync (for non transacted ack modes) there is a race between the producerSession and the queueBrowsers check for the messages on the broker.  Adding a sync for the non transacted ack mode cases should resolve this.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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