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 2016/01/10 23:34:39 UTC
[jira] [Updated] (QPID-6957) [Java Tests] LastValueQueueTest
sporadically fails on cpp profile
[ https://issues.apache.org/jira/browse/QPID-6957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keith Wall updated QPID-6957:
-----------------------------
Fix Version/s: qpid-java-6.1
> [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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org