-
Notifications
You must be signed in to change notification settings - Fork 812
Producer stuck on TCP connection error #451
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
Comments
I believe I am seeing the same issue, recording some info here in case it's useful: I create NewWriter() and try to write to it, however my brokers are unreachable (for unrelated reasons). I then see these log lines:
Followed by the code hanging. I killed go and grabbed the stack trace that it was hung up on:
|
Thanks all. We've fixed this bug in the latest version ( |
When a producer encounters a TCP connection error, it becomes completely blocked and doesn't recover with a new connection.
I suspect I introduced a bug in #382. I haven't verified that. If so, it would affect v0.3.5 and v0.3.6.
Kafka Version
Tested against kafka v0.10.2.1
To Reproduce
Then run
docker stop kafka
(assuming you're running a test kafka broker in a container).The producer will correct retry once, but get stuck on the second attempt. I suspect that's because nothing is reading from the result channel being written to at this line:
https://github.com/segmentio/kafka-go/blob/master/writer.go#L748
Issue #426 could be related.
The text was updated successfully, but these errors were encountered: