[
https://issues.apache.org/jira/browse/QPID-637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aidan Skinner updated QPID-637:
-------------------------------
Attachment: QPID-637-basicmessagelistener-receive-interrupt-reciever.patch
Additional patch which makes sure the consumer is closed appropriately.
> 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.