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

[v23.2.x] Fixed handling Raft snapshot #14981

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #14929
Fixes: #14980,

When writing snapshot Raft gate should be held. This will prevent
interrupting snapshot creation in the middle of write process.

Fixes: redpanda-data#14896

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 8e595aa)
When state machine is applying the snapshot it may be the case that
another install snapshot request is received by underlying Raft protocol
instance. In this case the STM should immediately proceed to applying
the new snapshot instead of trying to read log from an offset which is
lower than the new log start offset.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 78d2b21)
@vbotbuildovich vbotbuildovich added this to the v23.2.x-next milestone Nov 15, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Nov 15, 2023
@piyushredpanda piyushredpanda marked this pull request as ready for review November 18, 2023 20:31
@piyushredpanda piyushredpanda merged commit 8ce99c2 into redpanda-data:v23.2.x Nov 18, 2023
25 checks passed
@piyushredpanda piyushredpanda modified the milestones: v23.2.x-next, v23.2.17 Nov 19, 2023
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.

3 participants