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] (2.11) Upgrade path for deterministic clustered dedupe #6426

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

MauriceVanVeen
Copy link
Member

Since the introduction of #6415 we have a deterministic way of de-duplication such that leader changes are no issue as well as never returning a zero-sequence or duplicate conflict error.

However, during an upgrade this could result in stream desync. This was due to a replica accepting anything the leader tells it to do, ignoring if the message is a duplicate. So if the leader running the new version would propose multiple duplicate messages (which is correct under the new behavior), the old version would ingest all messages instead of only the first.

This PR fixes that by having the leader only do these types of proposals if all servers within the group support it. Otherwise it falls back to the previous implementation.

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

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen changed the title [FIXED] Upgrade path for deterministic clustered dedupe [FIXED] (2.11) Upgrade path for deterministic clustered dedupe Jan 29, 2025
@MauriceVanVeen MauriceVanVeen marked this pull request as ready for review January 29, 2025 20:19
@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner January 29, 2025 20:19
Copy link
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 2efb39c into main Jan 29, 2025
5 checks passed
@derekcollison derekcollison deleted the maurice/deterministic-clustered-dedupe-upgrade branch January 29, 2025 22:27
MauriceVanVeen added a commit that referenced this pull request Jan 30, 2025
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
derekcollison added a commit that referenced this pull request Jan 30, 2025
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
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