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


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.

Reply via email to