[rabbitmq-discuss] Durable + Exclusive queue disappeared

Jonathan Schwietert jonathan.schwietert at gmail.com
Wed Apr 3 17:28:02 BST 2013


Pasting in a response i received via email that isn't showing up on this 
list, from *Emile Joubert:*
Hi,

On 02/04/13 23:32, Jonathan Schwietert wrote:

Hi, I have a queue which was declared with BOTH durable and exclusive

(on accident) whose owner disconnected then reconnected and now

receives: "NOT_FOUND - no queue 'test.queue' in vhost '/test.vhost'".


See the documentation for the exclusive parameter:

http://www.rabbitmq.com/amqp-0-9-1-reference.html#queue.declare.exclusive

"Exclusive queues may only be accessed by the current connection, and
are deleted when that connection closes."

So your 'test.queue' should not longer exist. The presence of the string
in the internal Mnesia files does not necessarily mean that the queue
still exists since the name could appear in internal logs.

The scenario you describe can occur if a queue was declared on a node
which leaves a cluster. A "Not Found" error will result when attempting
to redeclare or delete the queue on any remaining nodes in the cluster.
The solution is for the node that left the cluster to rejoin. The use of
mirrored queues will prevent this condition.


-Emile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130403/6ebefa4a/attachment.htm>


More information about the rabbitmq-discuss mailing list