[rabbitmq-discuss] Durable + Exclusive queue disappeared

Emile Joubert emile at rabbitmq.com
Wed Apr 3 10:27:39 BST 2013



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








More information about the rabbitmq-discuss mailing list