-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stream 'crash' when using Single Active Consumer and restarting stream writer node #5889
Comments
Can you please put together an executable example that does not use any proxies? |
I'm trying to reproduce the issue. Do the 2 consumers share the name or is it distinct? |
Do you mean if I can try to reproduce without using the HAProxy that load balances the 3 brokers? |
Yes, the idea is to reduce noise as much as possible. I tried to reproduce just by |
They use the same name ConsumerBuilder builder = environment.consumerBuilder()
.singleActiveConsumer()
.manualTrackingStrategy().builder()
.name("test-consumer")
.messageHandler((context, message) -> {
...
context.storeOffset();
});
... |
Ok - I can try that. I will just have change my setup to use 'stream.advertised_host' for the containers. |
Sounds good, thanks. |
Do not assume the connection PID of a consumer is still known from the state on state cleaning when unregistering a consumer. Fixes #5889
Thank you @acogoluegnes. I will build and try it out tomorrow. |
Do not assume the connection PID of a consumer is still known from the state on state cleaning when unregistering a consumer. Fixes #5889
I am evaluating RabbitMQ Single Active Consumer for Streams.
Setup
Procedure
Outcome
After a couple of restarts of the writer node, the Producer fails to send messages to the cluster, client returns error code 10002 (CODE_PRODUCER_NOT_AVAILABLE). The consumers log the message
stream status
The server logs shows this error (truncated)
And I don't how to get out of this state without resetting the whole cluster.
In my environment, this is quite easy to reproduce, but the number of writer node restarts vary from 1 to 10.
node-2.log
node-3.log
node-1.log
Server logs for all 3 nodes are attached. The errors are reported near the end of the files.
The text was updated successfully, but these errors were encountered: