[rabbitmq-discuss] when consumers goes away, how to delete their queues left behind
Grenier,Michel [CMC]
Michel.Grenier at ssc-spc.gc.ca
Thu Sep 12 15:00:33 BST 2013
Hi rabbitmq gurus
In our environment, there is a probability that
a portion of our outside consumers will "come and go away after a
while" ...
Except for the rabbitmq-management plugin, there is no rabbitmqctl
command to
delete a queue... is this right !?
So the only way to delete an unwanted queue will be to code something
using the administrator user that will delete a queue using its
name... is that right !?
It is possible using PIKA ?
Michel Grenier
(514) 421-7204
-----Original Message-----
From: Grenier,Michel [CMC]
Sent: 11 September, 2013 11:03
To: 'Discussions about RabbitMQ'
Subject: RE: [rabbitmq-discuss] losing messages
More details about message leaking
My publishers all open one connection, uses 1 channel and declare and
feed the same exchange (exchange with auto-delete = true)
When I start the publishers the exchange is created and receives
(publish-in) messages.
Than running my consumer :
it opens one connection, uses 1 channel, creates a queue
(auto-delete=true) and declare the same exchange (auto-delete=true) and
bind the exchange to its queue everything runs smoothly.
When I stop my consumer the exchange is deleted in the rabbitmq server
(rabbitmq-management shows that)
even if the publishers are still feeding ??? Is this normal ?
Restarting the consumer, the exchange is "recreated" but it seems that
some (or sometimes all) the bindings with the publishers are broken ???
This is how I am losing messages
Rabbitmq 3.1.5
What do I do wrong ?
Michel Grenier
(514) 421-7204
-----Original Message-----
From: rabbitmq-discuss-bounces at lists.rabbitmq.com
[mailto:rabbitmq-discuss-bounces at lists.rabbitmq.com] On Behalf Of
Grenier,Michel [CMC]
Sent: 09 September, 2013 10:51
To: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] losing messages
No error on the producer/publisher side
No errors/warnings in RabbitMQ log.
I have installed PIKA, and used their asynchronous consumer example and
so far (over the all the weekend) I wasn't able to reproduce the
problem...
This seems to point to my consumer... will post something if it happens
again.
Thanks
Michel Grenier
(514) 421-7204
-----Original Message-----
From: rabbitmq-discuss-bounces at lists.rabbitmq.com
[mailto:rabbitmq-discuss-bounces at lists.rabbitmq.com] On Behalf Of
Michael Klishin
Sent: 05 September, 2013 11:19
To: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] losing messages
Grenier,Michel:
> than for no apparent reason, my consumer is missing some messages
> from one producer...
>
> The producer still sends messages... I simply restart the
producer and the problem is resolved...
Is your producer report any errors? Are there any errors or warnings in
RabbitMQ log (if you have it, please post it to the list).
Does it work better if you try Pika (a different Python client)?
MK
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list