-
Notifications
You must be signed in to change notification settings - Fork 593
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
r/consensus: use term from snapshot when it is available at startup #23835
r/consensus: use term from snapshot when it is available at startup #23835
Conversation
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>
Signed-off-by: Michał Maślanka <michal@redpanda.com>
Signed-off-by: Michał Maślanka <michal@redpanda.com>
1570b02
to
ceea064
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
non flaky failures in https://buildkite.com/redpanda/redpanda/builds/56811#01929f9e-284d-43bc-b9c9-0cb70df09b14:
non flaky failures in https://buildkite.com/redpanda/redpanda/builds/56811#01929f9e-2851-4b76-a150-301fa259ec46:
non flaky failures in https://buildkite.com/redpanda/redpanda/builds/56811#01929f9e-284e-4cfd-8168-969384b85370:
non flaky failures in https://buildkite.com/redpanda/redpanda/builds/56811#01929f9e-2850-471a-93d5-d4426e9810a0:
|
Retry command for Build#56811please wait until all jobs are finished before running the slash command
|
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/56811#01929f9e-2851-4b76-a150-301fa259ec46 |
/ci-repeat 1 |
/backport v24.2.x |
/backport v24.1.x |
/backport v23.3.x |
Failed to create a backport PR to v24.1.x branch. I tried:
|
Failed to create a backport PR to v23.3.x branch. I tried:
|
Failed to create a backport PR to v24.2.x branch. I tried:
|
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.Backports Required
Release Notes
Bug Fixes