Discussion:
[rabbitmq-discuss] Messages ready and not delivered
Rosa, Andrea
2011-08-12 09:51:56 UTC
Permalink
Hi

We are facing we a strange issue in an publisher/subscriber scenario, we have some queues with messages ready but not "consumed" by consumer.
The consumer seems to be up and running, the exchange and the queue are correctly linked.
Our queues and exchanges are not durable.
There are no warnings or errors in log file, how we can deeply debug that problem?
Someone else has a similar problem?

Regards
--
Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110812/08cc17ad/attachment.htm>
Emile Joubert
2011-08-12 12:43:55 UTC
Permalink
Hi Andrea,
Post by Rosa, Andrea
We are facing we a strange issue in an publisher/subscriber scenario, we
have some queues with messages ready but not ?consumed? by consumer.
Can you describe how to you are consuming the messages - are you using
synchronous (basic.get) or asynchronous (basic.consume) delivery?

Are you sure the queue contains messages? What does "rabbitmqctl
list_queues name messages_ready messages_unacknowledged consumers" return?


-Emile
Rosa, Andrea
2011-08-12 16:04:50 UTC
Permalink
Post by Emile Joubert
Hi Andrea,
Post by Rosa, Andrea
We are facing we a strange issue in an publisher/subscriber scenario,
we
Post by Rosa, Andrea
have some queues with messages ready but not "consumed" by consumer.
Can you describe how to you are consuming the messages - are you using
synchronous (basic.get) or asynchronous (basic.consume) delivery?
We have asynchronous delivery.
Post by Emile Joubert
Are you sure the queue contains messages? What does "rabbitmqctl
list_queues name messages_ready messages_unacknowledged consumers" return?
The unack messages is equal to 0 but there are some ready messages in the queues
Post by Emile Joubert
-Emile
--
Andrea
Emile Joubert
2011-08-12 16:18:38 UTC
Permalink
Hi Andrea,
Post by Rosa, Andrea
Post by Emile Joubert
Are you sure the queue contains messages? What does "rabbitmqctl
list_queues name messages_ready messages_unacknowledged consumers" return?
The unack messages is equal to 0 but there are some ready messages in the queues
And the last "consumers" column? How many consumers does the broker
think are subscribed? If the client receives messages asynchronously
then the number should be 1 or greater.

Something else to check is whether the consumer has asserted channel
flow. That will prevent the broker from delivering messages on the
channel. You can confirm this with
"rabbitmqctl list_channels client_flow_blocked"


-Emile
Rosa, Andrea
2011-08-12 17:45:48 UTC
Permalink
Post by Emile Joubert
Hi Andrea,
Post by Rosa, Andrea
Post by Emile Joubert
Are you sure the queue contains messages? What does "rabbitmqctl
list_queues name messages_ready messages_unacknowledged consumers" return?
The unack messages is equal to 0 but there are some ready messages in
the queues
And the last "consumers" column? How many consumers does the broker
think are subscribed? If the client receives messages asynchronously
then the number should be 1 or greater.
Ok I verified that the consumers number is equal to 0 so I guess that the problem is not
rabbitmq but with our consumers that for some reasons lose the connection
and don't manage properly the reconnection with the server.
Post by Emile Joubert
Something else to check is whether the consumer has asserted channel
flow. That will prevent the broker from delivering messages on the
channel. You can confirm this with
"rabbitmqctl list_channels client_flow_blocked"
For that the value is False
Post by Emile Joubert
-Emile
Thanks for your help
--
andrea

Continue reading on narkive:
Loading...