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.3.x] Do not request votes if term changed in prevote phase #18625

Conversation

mmaslankaprv
Copy link
Member

Backport of PR #18394

@mmaslankaprv mmaslankaprv added this to the v23.3.x-next milestone May 22, 2024
@mmaslankaprv mmaslankaprv added the kind/backport PRs targeting a stable branch label May 22, 2024
@mmaslankaprv mmaslankaprv marked this pull request as ready for review May 22, 2024 09:22
@piyushredpanda piyushredpanda modified the milestones: v23.3.x-next, v23.3.16 May 22, 2024
phases

If term changed between pre-vote and actual vote phase a candidate
should not proceed and request votes.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 40add5d)
Added more logging about the start and result of pre-vote election.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 1f0203f)
If a candidate receives a reply with term which is different than
requested then the vote should not be treated as success. Additionally
the term of candidate should be updated.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
@mmaslankaprv mmaslankaprv force-pushed the vbotbuildovich/backport-18394-v23.3.x-478 branch from a6db30d to 75fbddc Compare May 22, 2024 14:41
@piyushredpanda piyushredpanda merged commit 09ec053 into redpanda-data:v23.3.x May 23, 2024
16 checks passed
@BenPope BenPope modified the milestones: v23.3.x-next, v23.3.16 Jun 26, 2024
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.

[v23.3.x] Do not request votes if term changed in prevote phase
4 participants