Rajith Attapattu created QPID-4922:
--------------------------------------

             Summary: If Consumer close() method is invoked while inside 
onMessage(), it should be excuted after onMessage() has completed. 
                 Key: QPID-4922
                 URL: https://issues.apache.org/jira/browse/QPID-4922
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
    Affects Versions: 0.20, 0.18, 0.16, 0.14, 0.22
            Reporter: Rajith Attapattu
            Assignee: Rajith Attapattu
             Fix For: 0.23


If Consumer close() is called while inside onMessage(), it deadlocks (or will 
be waiting on a condition that would never be true with the patch for 
QPID-4574).
As per the JMS spec, the consumer cannot be closed() until onMessage() method 
returns.
Therefore the best solution is to mark that close() has been called and then 
execute those method once the thread returns from onMessage().


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to