Replies: 1 comment 1 reply
-
Hello, Team RabbitMQ prefers to use discussions until actionable work is discovered. In this case, please provide the following:
Team RabbitMQ does not have the time or resources to set up an environment, write code, and try to reproduce the issue, plus, time doing that is time not spent diagnosing the issue. Please, make it as easy as possible for us to see your issues and we are happy to assist. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thanks for providing this awesome library!
We're currently facing an issue with handling disconnections based on the example provided in this repository. The problem is that the connection and the channel are not notifying us about disconnections via channels provided to the
NotifyClose
methods of channel and connection objects.Our Setup
We have a RabbitMQ cluster of three nodes running inside Kubernetes. The queue in question, let's call it
my_queue
, is currently bound tonode 2
of the cluster.Disconnection Behaviour
If the client is connected to
node 2
and trying to consume messages, everything works as expected. At this stage, there is a channel bound to themy_queue
queue. Whennode 2
is disconnected or restarted, we receive the notification successfully, and the client attempts to reconnect.However, depending on the situation, the next time the client might connect to a different node. If that happens, and
node 2
goes away, we don't get any notification. At this point, the client has a connection to another node, the channel is not bound to any queue, and we don't consume any messages indefinitely.Other Observations
We have noticed that at this point we receive a message from the consumer where its
ConsumerTag
is an empty string. We are planning to use this behaviour to indicate that we are disconnected from the server. We know this is not the correct way to handle disconnections, but it's the only option we have at this stage. So far, we have been killing our pods regularly to keep our services running.I understand that handling disconnections is not the primary goal of this library, but I would appreciate it if you could comment on this issue.
Best regards,
Arsham
Beta Was this translation helpful? Give feedback.
All reactions