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

Keith Wall commented on QPID-4303:
----------------------------------

Firstly, the test name says "transacted" when in fact the test actually uses a 
non-transactional session, so tests testP2PFailoverTransacted and 
testP2PFailover are currently equal.

Looking at the failed run (log attached), you can see that none of the sent 
messages had reached the broker by the time the consumer had started.   For 
this reason, the receive returned null.  In the non-transactional case, the 
test needs to #sync in order to ensure that its messages have reached the 
broker in order for reliable operation.




                
> FailoverTest sometimes fails on slower CI boxes.
> ------------------------------------------------
>
>                 Key: QPID-4303
>                 URL: https://issues.apache.org/jira/browse/QPID-4303
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: 0.19
>            Reporter: Keith Wall
>            Assignee: Keith Wall
>             Fix For: 0.19
>
>         Attachments: 
> TEST-org.apache.qpid.test.client.failover.FailoverTest.testP2PFailoverTransacted.out
>
>
> As shown by:
> https://builds.apache.org/view/M-R/view/Qpid/job/Qpid-Java-Java-BDB-TestMatrix/lastCompletedBuild/jdk=JDK%201.6%20%28latest%29,label=Ubuntu,profile=java-bdb.0-9-1/testReport/org.apache.qpid.test.client.failover/FailoverTest/testP2PFailoverTransacted/
> Regression
> org.apache.qpid.test.client.failover.FailoverTest.testP2PFailoverTransacted
> Failing for the past 1 build (Since Failed#521 )
> Took 5.5 sec.
> add description
> Error Message
> Message 1 was null!
> Stacktrace
> junit.framework.AssertionFailedError: Message 1 was null!
>       at 
> org.apache.qpid.test.client.failover.FailoverTest.consumeMessages(FailoverTest.java:111)
>       at 
> org.apache.qpid.test.client.failover.FailoverTest.runP2PFailover(FailoverTest.java:216)
>       at 
> org.apache.qpid.test.client.failover.FailoverTest.testP2PFailover(FailoverTest.java:187)
>       at 
> org.apache.qpid.test.client.failover.FailoverTest.testP2PFailoverTransacted(FailoverTest.java:172)
>       at 
> org.apache.qpid.test.utils.QpidBrokerTestCase.runBare(QpidBrokerTestCase.java:244)
>       at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:137)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to