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

fix: clear lastAssigned when revoking eager consumer #720

Merged
merged 1 commit into from
May 26, 2024

Conversation

hamdanjaveed
Copy link
Contributor

If a consumer that can be cooperative but is currently eager revokes its assigned partitions as part of a rebalance it should also clear its tracking state between rebalances as it has revoked all of its partitions.

This was leading to some inconsistent behaviour when migrating from eager consumers to cooperative consumers following the migration instructions in KIP-429.

Fixes #686

@hamdanjaveed
Copy link
Contributor Author

Tried writing a test for this but wasn't able to write one that properly exercised the code path here :(

Instead we've manually tested this fix by running consumers locally from this minimal repro: https://github.com/hamdanjaveed/kgo-cooperative-bug-reproducer

@twmb
Copy link
Owner

twmb commented May 26, 2024

Sorry for the delay, the last few months were much busier than anticipated. Releasing imminently!
(this fixes a somewhat minor bug so I did not rush a patch release for this)

@twmb twmb merged commit 4ccdc73 into twmb:master May 26, 2024
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.

Consumer group rebalancing bug when switching from eager to cooperative consumers
2 participants