[rabbitmq-discuss] Handling Consumer Cancel Notifications in Java Client

Michael Klishin mklishin at gopivotal.com
Fri Aug 9 08:19:03 BST 2013


Chris:

> Whenever I try to do anything with the channel in my "handleCancel" method implementation, it blocks forever.  I'm guessing there is a lock on the channel while I'm in that method, and that lock that prevents me from redeclaring queues or consuming from them?

Chris,

There should be no lock that prevents operations from handleCancel.

Can you use VisualVM or jstack to take a thread dump and see what method hangs?
Do you see any alarms mentioned in RabbitMQ log?

Is there a way you can reproduce this issue with a code sample you can post?
--
MK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130809/6b8c809a/attachment.pgp>


More information about the rabbitmq-discuss mailing list