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] Make sure jsz reporting of filtered consumers delivered stream sequence is consistent. #5528

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

derekcollison
Copy link
Member

For a leader, it will skip msgs at the end to eof and remember o.sseq for the next getNextMsg call.
But this will report stream delivered different for the leader vs the followers.

Also if a consumer leader processed an ack ahead of delivered it would sync, but followers would not.
This makes the behavior consistent between leaders and followers.

Signed-off-by: Derek Collison [email protected]

…ce is consistent.

For a leader, it will skip msgs at the end to eof and remember o.sseq for the next getNextMsg call.
But this will report stream delivered different for the leader vs the followers.

Signed-off-by: Derek Collison <[email protected]>
…c, but followers would not.

This makes the behavior consistent between leaders and followers.

Signed-off-by: Derek Collison <[email protected]>
@derekcollison derekcollison requested a review from a team as a code owner June 13, 2024 06: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 f263d75 into main Jun 13, 2024
4 checks passed
@derekcollison derekcollison deleted the cons-delivered-sync branch June 13, 2024 11:48
neilalexander pushed a commit that referenced this pull request Jun 17, 2024
…m sequence is consistent. (#5528)

For a leader, it will skip msgs at the end to eof and remember o.sseq
for the next getNextMsg call.
But this will report stream delivered different for the leader vs the
followers.

Also if a consumer leader processed an ack ahead of delivered it would
sync, but followers would not.
This makes the behavior consistent between leaders and followers.

Signed-off-by: Derek Collison <[email protected]>

---------

Signed-off-by: Derek Collison <[email protected]>
wallyqs added a commit that referenced this pull request Jun 17, 2024
Includes the following:

* #5524
* #5528
* #5533
* #5535
* #5538
* #5543
* #5546
* #5545
* #5547
* #5548
* #5530 (**BETA**)
* #5549

The following PRs were **NOT** included as they were later reverted:

* #5532

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.

2 participants