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

[v24.2.x] Validate offset delta in append entries handler #24703

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

mmaslankaprv
Copy link
Member

Backport of PR #24617

Added a `prev_log_delta` field to `raft::protocol_metadata`. The
`prev_log_delta` contains an offset translator delta corresponding to
metadata `prev_log_index`. Including the delta in metadata will allow
follower to detect offset translator state inconsistency.

Signed-off-by: Michał Maślanka <[email protected]>
(cherry picked from commit ff96d02)
Added offset translator state validation to append entries handler. The
validation doesn't prevent Raft group from operation but emits an error
log message which can be easily observed.

Signed-off-by: Michał Maślanka <[email protected]>
(cherry picked from commit 97d3d4f)
Signed-off-by: Michał Maślanka <[email protected]>
(cherry picked from commit 3dc5470)
@mmaslankaprv mmaslankaprv added this to the v24.2.x-next milestone Jan 7, 2025
@mmaslankaprv mmaslankaprv added the kind/backport PRs targeting a stable branch label Jan 7, 2025
@mmaslankaprv mmaslankaprv marked this pull request as ready for review January 7, 2025 13:01
@mmaslankaprv
Copy link
Member Author

Fixes: #24633

@mmaslankaprv mmaslankaprv linked an issue Jan 7, 2025 that may be closed by this pull request
@mmaslankaprv
Copy link
Member Author

/ci-repeat 1

@mmaslankaprv mmaslankaprv merged commit 82fffbd into v24.2.x Jan 9, 2025
18 checks passed
@mmaslankaprv mmaslankaprv deleted the manual-backport-24617-v24.2.x-225 branch January 9, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v24.2.x] Validate offset delta in append entries handler
2 participants