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 Out of Order Commits After Rebalance #260

Merged
merged 1 commit into from Jan 13, 2022

Conversation

garyrussell
Copy link
Contributor

Resolves #259

Consumer could be permanently paused if a partition is reassigned and
duplicate records received.

  • purge deferred and uncommitted offset commits when a partition is revoked
  • protect against duplicate entries in both maps

Also fix a small race where isPaused() returns false in onRequest() but the
consumer is about to be paused, preventing wake up - only an issue with long
poll timeouts.

Resolves reactor#259

Consumer could be permanently paused if a partition is reassigned and
duplicate records received.

- purge deferred and uncommitted offset commits when a partition is revoked
- protect against duplicate entries in both maps

Also fix a small race where `isPaused()` returns false in `onRequest()` but the
consumer is about to be paused, preventing wake up - only an issue with long
poll timeouts.
@rancherz
Copy link

rancherz commented Jan 12, 2022

This change looks good to me

@simonbasle simonbasle added this to the 1.3.10 milestone Jan 13, 2022
@simonbasle simonbasle added the type/bug A general bug label Jan 13, 2022
@simonbasle simonbasle merged commit f6eaaa3 into reactor:main Jan 13, 2022
@garyrussell garyrussell deleted the GH-259 branch February 8, 2022 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consumer gets stuck after a rebalance when using out of order commits
3 participants