[rabbitmq-discuss] Unbinding when not bound

Matthias Radestock matthias at rabbitmq.com
Thu May 6 13:14:17 BST 2010


Emile Joubert wrote:
> The broker is required to raise a connection exception if an unbind 
> fails, so you are witnessing expected behaviour.

That is actually a wart in AMQP.  Exchange, queue and binding 
declaration are idempotent - which is a good thing - but the 
corresponding destructive operations are not.

Also, there is an inconsistency here between unbind and, say, queue and 
exchange deletion. The latter raise 404 *channel* error when the 
mentioned resources do not exist. But the unbind is required to raise a 
connection error under similar conditions.


Matthias.



More information about the rabbitmq-discuss mailing list