Skip to content
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

deletes partition consumer from map even on errors #51

Merged
merged 2 commits into from
Nov 1, 2017

Conversation

db7
Copy link
Collaborator

@db7 db7 commented Oct 29, 2017

If a partition consumer is removed and returns an error on Close(), it is not removed from the map of partition consumers (inside kafka/simple_consumer.go). When stopping the processor later on, that partition consumer will be closed again, causing a close of closed channel panic.

This PR removes the partition consumer from the map even if it returns an error on close.

@db7 db7 requested review from frairon and SamiHiltunen October 29, 2017 11:30
@db7 db7 merged commit c7d424e into master Nov 1, 2017
@db7 db7 deleted the double-close-on-error branch November 1, 2017 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants