-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fix assignment lost, on illegal generation, during a commit #4908
base: master
Are you sure you want to change the base?
Conversation
🎉 All Contributor License Agreements have been signed. Ready to merge. |
/* Revoke assignment and rebalance on illegal generation, | ||
* only if not rebalancing, because a new generation id | ||
* can be received soon after this error. */ | ||
if (RD_KAFKA_CGRP_REBALANCING(rkcg)) |
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.
Setting rk->rk_cgrp->rkcg_generation_id
to -1, even if not initiating a rejoin, was causing an error in next SyncGroup, that was causing the lost assignment.
on commit during a rebalance.
ca1e90f
to
40dc10b
Compare
Closes: #4059.
Commits during a rebalance could cause to lose the assignment if the
generation id was bumped by second join group request.
Solved by not rejoining the group in case an illegal generation error happens
during a rebalance.
Happening since v1.6.0.
See this comment for the explanation of the issue:
#4059 (comment)