You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (JIRA)" <ji...@apache.org> on 2012/06/29 17:00:52 UTC

[jira] [Commented] (QPID-4099) FailoverBehaviourTest.testFlowControlFlagResetOnFailover fails occasionally on CI

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

Keith Wall commented on QPID-4099:
----------------------------------

Looking at the test log file, you can see this is a race condition within the test itself.

The client main thread continues as soon as ChannelFlow(active=false) is received from the Broker.  This may be *before* the producing thread has returned control to the loop (after the 4th commit) and had chance to increment the counter.


                
> FailoverBehaviourTest.testFlowControlFlagResetOnFailover fails occasionally on CI
> ---------------------------------------------------------------------------------
>
>                 Key: QPID-4099
>                 URL: https://issues.apache.org/jira/browse/QPID-4099
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: 0.17
>            Reporter: Keith Wall
>            Assignee: Keith Wall
>            Priority: Minor
>             Fix For: 0.17
>
>
> Test FailoverBehaviourTest.testFlowControlFlagResetOnFailover has been seen to fail on Apache CI.
> https://builds.apache.org/view/M-R/view/Qpid/job/Qpid-Java-Java-MMS-TestMatrix/jdk=JDK%201.6%20%28latest%29,label=Ubuntu,profile=java-mms.0-9-1/405/testReport/junit/org.apache.qpid.client.failover/FailoverBehaviourTest/testFlowControlFlagResetOnFailover/
> {code}
> org.apache.qpid.client.failover.FailoverBehaviourTest.testFlowControlFlagResetOnFailover
> Failing for the past 1 build (Since Failed#405 )
> Took 13 sec.
> Error Message
> Unexpected number of sent messages expected:<4> but was:<3>
> Stacktrace
> junit.framework.AssertionFailedError: Unexpected number of sent messages expected:<4> but was:<3>
> 	at org.apache.qpid.client.failover.FailoverBehaviourTest.testFlowControlFlagResetOnFailover(FailoverBehaviourTest.java:897)
> 	at org.apache.qpid.test.utils.QpidBrokerTestCase.runBare(QpidBrokerTestCase.java:243)
> 	at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:137)
> {code}

--
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

        

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