[rabbitmq-discuss] Autodelete queues not being deleted
Valentin BERNARD
vbernard42 at gmail.com
Wed Mar 21 16:45:18 GMT 2012
Hi,
We had a similar problem here. The most probable explanation in our
case was that the flow of the program could sometimes be interrupted
between the declaration of the queue and the actual consumption.
Our best solution was to declare our auto-delete queues with the x-
expires argument. That way, auto-delete queues with 0 consumers always
get deleted eventually.
Cheers.
On 20 mar, 15:44, Dave Stevens <daverstev... at gmail.com> wrote:
> Hrmmmm, you bring up a good point. A queue with this name definitely once
> had consumers. It looks like there were never any deliveries for the exact
> queue in question though. I'm thinking that the reconnect logic in the
> library I'm using is causing queues to be redeclared when my app is
> shutting down.
>
> On Tue, Mar 20, 2012 at 10:32 AM, Simon MacMullen <si... at rabbitmq.com>wrote:
>
>
>
>
>
>
>
> > On 20/03/12 14:23, Dave Stevens wrote:
>
> >> I frequently notice that queues which were created with autodelete are
> >> not actually deleted once there are no more consumers.
>
> > Just to be absolutely clear here: you mean they had consumers once, and
> > then the consumers all went away? If the queue never has consumers it will
> > not autodelete (otherwise it would autodelete as soon as you created it).
>
> > If you do mean that there were once consumers and the queue is still not
> > getting deleted, then yes, that would be wrong. We do test for this though
> > :-) so a test program would be helpful.
>
> > Cheers, Simon
>
> > --
> > Simon MacMullen
> > RabbitMQ, VMware
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-disc... at lists.rabbitmq.comhttps://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list