[Questions] How to narrow down why consumer may be getting duplicate deliveires #13022
-
Community Support Policy
RabbitMQ version used4.0.4 Erlang version used26.2.x Operating system (distribution) usedLinux How is RabbitMQ deployed?Community Docker image rabbitmq-diagnostics status outputSee https://www.rabbitmq.com/docs/cli to learn how to use rabbitmq-diagnostics
Logs from node 1 (with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 2 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 3 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
rabbitmq.confSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find rabbitmq.conf file location
Steps to deploy RabbitMQ clusterN/A Steps to reproduce the behavior in questionN/A advanced.configSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find advanced.config file location
Application code# PASTE CODE HERE, BETWEEN BACKTICKS Kubernetes deployment file# Relevant parts of K8S deployment that demonstrate how RabbitMQ is deployed
# PASTE YAML HERE, BETWEEN BACKTICKS What problem are you trying to solve?I have consumers that are consuming the same message multiple time sometimes after the first message completes getting processed by the consumer and sometimes while getting processed. So, I need a full picture on what is going on with rabbitmq, are the queue getting requeue for any reason if so what is the reason. I read the logging documentation it is so vague, can't figure out how to achieve this type of logging. Tried firehose, but best it provided was about message getting published and received, no info what happen after received like ack successfully or requeue due something/ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You have provided very little information but I suspect there is an issue with your consumer client application. Perhaps you are closing the channel too soon after acking such that the ack never reaches there queue. If you provide some sample code that reproduces the issue then we can perhaps advise further. |
Beta Was this translation helpful? Give feedback.
-
@Haileab-TG so you need a full picture but you have provided absolutely no details for the core team to work with? Yeah, since we have infinite time for guessing.
The logging guide is not vague. RabbitMQ does not log operations on individual messages, it's not practically possible when rates can reach tens of thousands, hundreds or (mostly relevant for streams and superstreams) thousands of millions. A traffic capture is by far the best source of information. To a certain extent, logs and internal events (consumer registration events specifically) could help. Please take it from here. Our team won't spend time guessing what your application does. |
Beta Was this translation helpful? Give feedback.
@Haileab-TG so you need a full picture but you have provided absolutely no details for the core team to work with? Yeah, since we have infinite time for guessing.
The logging guide is not vague. RabbitMQ does not log operations on individual messages, it's not practically possible when rates can reach tens of thousands, hundreds or (mostly relevant for streams and superstreams) thousands of millions.
A traffic capture is by far the best source of information. To a certain extent, logs and internal events (consumer registration events specifically) could help.
Please take it from here. O…