[rabbitmq-discuss] Execution hangs when redeclaring queue

Matthew Sackman matthew at rabbitmq.com
Wed Dec 22 16:52:56 GMT 2010


On Wed, Dec 22, 2010 at 05:42:12PM +0100, Henrik Abrahamsson wrote:
> My failover mechanism for my listener works like this: when connection to
> node1 goes down, connect to node2 and redeclare the queue q.

That cannot be done. It should be returning a 404 error and closing the
channel or maybe even the connection... unless the queue is not durable.
If the queue is not declared durable, you should be ok.

> But when testing this by restarting the rabbitmq node1, the execution hangs
> when redeclaring q on node2. Why does this happen?

It shouldn't do. Is there anything in the logs for Rabbit?

Matthew


More information about the rabbitmq-discuss mailing list