Node switchover in the cluster setup is not working #1118
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
This client is not aware of cluster topology and will simply retry all provided endpoints until one of the succeeds. This is the case for many reasons, including historical ones, but most importantly, the protocol does not assume that clients perform any kind of cluster topology discovery. They can connect to any node and perform any operations. In contrast, RabbitMQ Streams Java client is topology aware, the protocol allows it to benefit from connection parallelism, but it comes with a price tag in complexity which can be a deal breaker for beginners. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I have a cluster setup with 3 nodes [host1, host2 & host3] and I have provided the address as follows
connection = getConnectionFactory().newConnection(getAddresses());
...
Initially, my application was connected to host1.
When host1 goes down for some reason, queue leader switchover works fine and the rabbitMQ cluster continues to work fine as expected but my application keeps pushing the messages to host1 and fails.
Reproduction steps
Expected behavior
The client should be aware of the cluster and if the cluster is up, it should continue pushing the message to the nodes that are up & running.
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions