RabbitMQ Stream - Consumer is not reconnecting after RabbitMQ service restarts. #359
-
Describe the bugI am new to rabbitmq stream, I have created two separate applications for publishing and subscribing rabbitmq stream messages. When I restart rabbitmq service the producer app reconnects successfully. However, the consumer app is not. I am getting below error message. producer and consumer code attached. GettingStartedProducer.txt Reproduction steps
Expected behaviorConsumer reconnect back Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Please put together an executable way of reproducing and share node logs. We do not guess in this community. All that can be suggested from these screenshots is that the client did try to connect or reconnect (the output is incomplete) and that failed with
which is TCP speak for "the connection was refused or there was no process listening on the target hostname:port". This client uses a back-off reconnection strategy by default, so each failed attempt will increase the interval it waits before the next attempt to reconnect. Perhaps after Nth attempt to reconnect the interval grows to tens of seconds. With an executable example anyone could quickly verify this, in particular by taking a traffic capture and observing inbound TCP connection attempts on the RabbitMQ Stream protocol port. |
Beta Was this translation helpful? Give feedback.
-
We'd need also the rabbitmq version and the client version. Yesterday we released the 1.8.0 version focus on reconnecting |
Beta Was this translation helpful? Give feedback.
-
@praveengopalan, looking at the logs, you are using an old client version. |
Beta Was this translation helpful? Give feedback.
-
Ok great! |
Beta Was this translation helpful? Give feedback.
We'd need also the rabbitmq version and the client version.
Yesterday we released the 1.8.0 version focus on reconnecting