-
Notifications
You must be signed in to change notification settings - Fork 0
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
avoid consumer Close() hang #61
Conversation
Let's wait for confluentinc/confluent-kafka-go#189 before we proceed with this. Not sure if it's the suggested solution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably do what edenhill suggests: confluentinc/confluent-kafka-go#189 (comment).
consumer.go
Outdated
err := c.consumer.Close() | ||
// need to unassign to be sure the following Close() | ||
// will return | ||
// https://github.com/confluentinc/confluent-kafka-go/issues/189 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better add an explicit TODO so that we're reminded to get rid of this when the issue is fixed.
unsubscribe and poll before closing the consumer to avoid Close() hang Closes #59
PR ready |
This enables us to revert the workaround introduced in #61, which was needed because of confluentinc/confluent-kafka-go#189. Since this bug is fixed in librdkafka 0.11.5, so we can now remove our workaround.
unsubscribe and poll before closing the consumer to avoid Close()
hang
Closes #59
Workaround for confluentinc/confluent-kafka-go#189