Skip to content

[FIXED] Fix DeliverLastPerSubject consumer policy with interior deletes #7005

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

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

neilalexander
Copy link
Member

When the consumer was trying to find the next message from a skiplist, we were not correctly moving o.sseq up to the next skiplist sequence, which would result in missed messages and some acks being ignored. This is particularly evident with interior deletes, such as those created by the MaxMsgsPerSubject limit which the unit test uses.

Signed-off-by: Neil Twigg [email protected]

When the consumer was trying to find the next message from a skiplist,
we were not correctly moving `o.sseq` up to the next skiplist sequence,
which would result in missed messages and some acks being ignored.
This is particularly evident with interior deletes, such as those created
by the `MaxMsgsPerSubject` limit which the unit test uses.

Signed-off-by: Neil Twigg <[email protected]>
@neilalexander neilalexander requested a review from a team as a code owner June 25, 2025 10:20
Copy link
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

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

LGTM

@neilalexander neilalexander merged commit b662be6 into main Jun 25, 2025
89 of 92 checks passed
@neilalexander neilalexander deleted the neil/deliverlastpersubj branch June 25, 2025 10:41
neilalexander added a commit that referenced this pull request Jun 25, 2025
Includes the following:

- #7003
- #7005
- #7006

Signed-off-by: Neil Twigg <[email protected]>
@wallyqs wallyqs changed the title Fix DeliverLastPerSubject consumer policy with interior deletes [FIXED] Fix DeliverLastPerSubject consumer policy with interior deletes Jun 25, 2025
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.

2 participants