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] Made leader_id and term changes atomic #15333

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #15294
Fixes: #15331,

Fixed an error in Redpanda Raft protocol implementation leading to
reporting inconsistent leadership information. Previously it may
happened that the protocol `_term` was updated but `_leader_id` was
not. This might lead to situation in which a caller querying `term()`
and `leader_id()` method would receive new `term` value but the old
`leader_id`. The problem is limited to metadata and does not influence
protocol correctness as all the protocol checks are correct. The issue
might have been underlying some tests failures as the incorrect
leadership information might have propagated through health report
leading to leadership metadata staleness.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 1819bad)
@vbotbuildovich vbotbuildovich added this to the v23.2.x-next milestone Dec 6, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Dec 6, 2023
@mmaslankaprv mmaslankaprv marked this pull request as ready for review December 6, 2023 12:22
@mmaslankaprv mmaslankaprv self-requested a review December 11, 2023 07:55
@piyushredpanda piyushredpanda merged commit b4de333 into redpanda-data:v23.2.x Dec 14, 2023
22 of 24 checks passed
@piyushredpanda piyushredpanda modified the milestones: v23.2.x-next, v23.2.19 Dec 14, 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.

None yet

3 participants