-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
Consumer not retrying connection when dropped #1163
Comments
We're experiencing the same thing |
We also faced this issue. |
Can confirm this behavior. |
Is there any way to help to move this forward towards a resolution? |
I can no longer reproduce this on |
I believe this is fixed by #1337 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I am running a consumer with a single broker instance. When the connection to the broker is dropped - the consumer will sometimes hang and sometimes the kafkajs code to retry and restart will kick in. It appears to be random in what happens.
To Reproduce
I've used the sample consumer code from the KafkaJS website. Uploaded what I have as a Gist below.
2.1.
sudo iptables -A OUTPUT -p tcp --sport 9092 -j DROP
Prevent the server from reaching the client2.2.
sudo iptables -A INPUT -p tcp --dport 9092 -j DROP
Prevent the client from reaching the serverExpected behavior
I would expect kafkajs to always go into a retry/restart loop.
Observed behavior
I observed two things:
The two behaviours seem inconsistent and random
Environment:
The text was updated successfully, but these errors were encountered: