Is there any way to see the unacknowledged message?

43 views
Skip to first unread message

Chetan Ghodasara

unread,
Sep 11, 2018, 10:44:25 PM9/11/18
to rabbitmq-users
Hello,

We have 1 producer & 1 consumer of this queue. Consumer's manual ack is enabled.
But many times, RabbitMQ shows 1 unacknowledged message. & Next all coming messages are just piled up in the queue. I think due to this unacknowledged message, next messages are not being consumed.

(1) Is there any way I can see the unacknowledged message?
(2) Currently, if I restart the consumer, the unacknowledged message will be requeued. But Is there any way, we can requeue this unacknowledged message without restarting the consumer?

Thanking you

Michael Klishin

unread,
Sep 12, 2018, 6:10:23 AM9/12/18
to rabbitm...@googlegroups.com
1. There is no. You cannot consume a message twice with any of the protocols RabbitMQ supports.
2. Close its channel (which will automatically cancel all consumers on it) or connection (closes all channels on it and therefore cancels all consumers).

It's the channel closure that results in requeueing of unacknowledged messages [1], not application restart per se.


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages