Skip to content

[FIXED] Consistently report AckFloor when replicated#6232

Merged
derekcollison merged 1 commit intomainfrom
maurice/consistent-replicated-ackfloor
Dec 9, 2024
Merged

[FIXED] Consistently report AckFloor when replicated#6232
derekcollison merged 1 commit intomainfrom
maurice/consistent-replicated-ackfloor

Conversation

@MauriceVanVeen
Copy link
Copy Markdown
Member

A replicated consumer would not consistently report AckFloor. Since the consumer leader would report based on o.asflr it could be skipped way ahead of the replicated state.AckFloor.Stream. Always reporting replicated and agreed upon state means that it remains consistent after leader changes and our tooling to report desync doesn't create false positives.

This change also de-flakes TestJetStreamClusterConsumerAckFloorDrift.

Signed-off-by: Maurice van Veen github@mauricevanveen.com

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner December 9, 2024 14:31
Copy link
Copy Markdown
Member

@derekcollison derekcollison 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 259bd7e into main Dec 9, 2024
@derekcollison derekcollison deleted the maurice/consistent-replicated-ackfloor branch December 9, 2024 17:09
neilalexander added a commit that referenced this pull request Dec 13, 2024
Includes the following:

- #6226
- #6232
- #6235
- #6064
- #6244
- #6246
- #6247
- #6248
- #6250

Signed-off-by: Neil Twigg <neil@nats.io>
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