[rabbitmq-discuss] Fwd: Work on plugins

Tony Garnock-Jones tonygarnockjones+rabbitmq at gmail.com
Tue Sep 20 11:09:28 BST 2011


Damn it, fooled by gmail's UI again and forgot to CC the list.

---------- Forwarded message ----------
From: Tony Garnock-Jones <tonygarnockjones+rabbitmq at gmail.com>
Date: 20 September 2011 06:08
Subject: Re: [rabbitmq-discuss] Work on plugins
To: Simon MacMullen <simon at rabbitmq.com>


On 20 September 2011 05:52, Simon MacMullen <simon at rabbitmq.com> wrote:

> could delete exchanges and bindings seems pretty alarming to me.
>

Agreed.


> It seems that this is primarily an issue around exchange type plugins. I
> wonder if we could just not recover exchanges that have an unrecognised
> type? The trouble is, then you have a "hidden" exchange that will pop back
> as soon as you reinstall the plugin, but without the plugin you can't get
> rid of it, and attempts to redeclare it with a different type will always
> fail. Hmm.
>

What about not deleting them, but if during recovery an exchange is found
with an unknown type, warning about it in the log and starting it with an
"inert exchange type" driver that simply drops all messages routed through
it? (It might also log each time it does.)

Then if later Rabbit is restarted with the appropriate exchange type added
again, everything is back to normal, but people are warned about
possibly-unexpected behaviour and no information is lost without explicit
action. Also, exchange.delete would work to get rid of any unwanted
exchanges after plugin removal.

Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110920/69585d18/attachment.htm>


More information about the rabbitmq-discuss mailing list