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

[FIXED] Don't adjust o.pending during redelivery, gets fixed elsewhere #6399

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

MauriceVanVeen
Copy link
Member

Follow-up of #6387

Deleting from o.pending and o.rdc in o.getNextMsg was a correctness issue. Due to us calling go o.processTerm we could go into o.getNextMsg before o.processTerm has adjusted the accounting for the message that's deleted. So we must not change o.pending/o.rdc ourselves, and we can just skip, waiting for o.processTerm to run.

Resolves #6374

Signed-off-by: Maurice van Veen [email protected]

@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner January 23, 2025 13:15
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derekcollison derekcollison merged commit 892e1e1 into main Jan 23, 2025
5 checks passed
@derekcollison derekcollison deleted the maurice/consumer-redelivery-slow branch January 23, 2025 15:37
neilalexander added a commit that referenced this pull request Jan 23, 2025
Includes the following:

- #6399

Signed-off-by: Neil Twigg <[email protected]>
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.

Stuck and inconsistent consumer when deleting non-acked messages
3 participants