-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Producer deadlock: overlimit=0 #65
Comments
I believe the correct fix for this is:
On inspection there are two other issues:
|
@burke @fw42 @wvanbergen does this make sense to you? |
I am not quite sure what the initial problem was here? :/ |
Yeah ditto, no clue what this is about :-) Can you elaborate? |
It's a deadlock, read the inserted comments in the code block in order (1, 2, 3). #90 also includes a stack trace which I believe is the same issue. |
Basically: |
OK, now it makes sense to me. Your solutions makes sense to me. I wonder whether we can build tests around this. |
https://groups.google.com/forum/#!topic/sarama-users/8smSO57Ubzg found a way to consistently reproduce the hang, but it requires some dns hackery - I will use that to at least test a local copy of the fix |
Also return an error when we fail to re-enqueue, and make sure to close the channel in the errorCb used for synchronous sends. In combination, fixes #65
file:produce_message.go
file:producer.go
The text was updated successfully, but these errors were encountered: