You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org> on 2007/12/12 15:33:43 UTC
[jira] Resolved: (QPID-637) BasicConsumer.recieve can return null
before the timeout expires due to InterruptedException
[ https://issues.apache.org/jira/browse/QPID-637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Godfrey resolved QPID-637.
------------------------------
Resolution: Fixed
> BasicConsumer.recieve can return null before the timeout expires due to InterruptedException
> --------------------------------------------------------------------------------------------
>
> Key: QPID-637
> URL: https://issues.apache.org/jira/browse/QPID-637
> Project: Qpid
> Issue Type: Bug
> Components: Java Client
> Affects Versions: M2, M2.1
> Reporter: Aidan Skinner
> Attachments: QPID-637-basicmessagelistener-receive-interrupt-reciever.patch, QPID-637-basicmessagelistener-receive.patch
>
>
> BasicMessageConsumer returns null when it receives InterruptedException even if it has been told not to timeout or if the timeout has not yet expired, leading to oddities like:
> testQueueBrowserMsgsRemainOnQueue(org.apache.qpid.test.client.QueueBrowserTest)
> Time elapsed: 0.087 sec <<< FAILURE!
> junit.framework.AssertionFailedError: Message 0 not retrieved from queue
> at junit.framework.Assert.fail(Assert.java:47)
> at org.apache.qpid.test.client.QueueBrowserTest.testQueueBrowserMsgsRemainOnQueue(QueueBrowserTest.java:144)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.