qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wall (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (QPID-6957) [Java Tests] LastValueQueueTest sporadically fails on cpp profile
Date Sun, 10 Jan 2016 22:34:39 GMT

     [ https://issues.apache.org/jira/browse/QPID-6957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Keith Wall closed QPID-6957.

> [Java Tests] LastValueQueueTest sporadically fails on cpp profile
> -----------------------------------------------------------------
>                 Key: QPID-6957
>                 URL: https://issues.apache.org/jira/browse/QPID-6957
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>            Reporter: Lorenz Quack
>             Fix For: qpid-java-6.1
> On the cpp profile the LastValueQueueTest sporadically fails because the semantics of
LVQs for messages without a defined key differ from the Java broker's.
> The Java broker [specifies|https://qpid.apache.org/releases/qpid-0.32/java-broker/book/Java-Broker-Management-Managing-Queues.html#Java-Broker-Management-Managing-Queues-Types-LVQ]
that: {quote}Messages sent to an LVQ without the specified property will be delivered as normal
and will never be "replaced".{quote}
> The C++ broker does not document its behaviour in this case but seems to treat messages
that do not set a key as having the same key.
> Therefore, the shutdown messages in o.a.q.s.q.LastValueQueueTest#testParallelProductionAndConsumption
replace each other and the second (or rather the first) message is never received by the consumer
leading to a NPE:
> {noformat}
> testParallelProductionAndConsumption(org.apache.qpid.server.queue.LastValueQueueTest)
 Time elapsed: 10.571 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: null
> 	at junit.framework.Assert.fail(Assert.java:55)
> 	at junit.framework.Assert.assertTrue(Assert.java:22)
> 	at junit.framework.Assert.assertNotNull(Assert.java:256)
> 	at junit.framework.Assert.assertNotNull(Assert.java:248)
> 	at junit.framework.TestCase.assertNotNull(TestCase.java:417)
> 	at org.apache.qpid.server.queue.LastValueQueueTest.receiveMessages(LastValueQueueTest.java:442)
> 	at org.apache.qpid.server.queue.LastValueQueueTest.testParallelProductionAndConsumption(LastValueQueueTest.java:405)
> {noformat}

This message was sent by Atlassian JIRA

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

View raw message