-
Notifications
You must be signed in to change notification settings - Fork 118
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
Clean up ZooKeeper group data on last member leave #155
Conversation
I was unable to get kafka-pixy to clean up the
Here is the log from when I started a single consumer and then stopped the consumer. I didn't have time to dig into why it wasn't cleaning up. If you want I should have more time tomorrow. |
@thrawn01 Looks like in your case
|
@thrawn01 fixed. |
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.
Verified the entries are cleaned up after all consumers leave. Reviewed the code, I think I understand partition claims better now. Looks good to me!
A consumer group data has never been removed from ZooKeeper before, that could cause issues with disposable groups that we use to implement broadcast events. With this PR when the last group member is leaving a group, its data structure in ZooKeeper is deleted. The logic is careful to survive a data race that can occur when the last member leaves but a new one joins the group at the same time.
Besides: