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] r/consensus: use term from snapshot when it is available at startup #23879

Open
wants to merge 3 commits into
base: v24.2.x
Choose a base branch
from

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Oct 22, 2024

Backport of PR #23835
Fixes: #23846

If snapshot is available when `raft::consensus` starts the term from
snapshot should initialize Raft protocol term. This fixes a bug in
which a term might have move backward after recovery.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 65068aa)
Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit bf10ec4)
@mmaslankaprv mmaslankaprv added this to the v24.2.x-next milestone Oct 22, 2024
@mmaslankaprv mmaslankaprv added the kind/backport PRs targeting a stable branch label Oct 22, 2024
@mmaslankaprv mmaslankaprv marked this pull request as ready for review October 22, 2024 15:38
Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit ceea064)
@mmaslankaprv mmaslankaprv force-pushed the vbotbuildovich/backport-23835-v24.2.x-916 branch from 2b86882 to a626ea7 Compare October 23, 2024 07:17
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.

2 participants