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

[v22.3.x] Fixed Raft voter priority override with single replica topics #11667

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Jun 24, 2023

Backport of PR #10800
Fixes: #11546

Redpanda Raft implementation exposes an API allowing to override a voter
priority. This is used by the drain manager when a node is in
maintenance mode. In current implementation when the only voter is in
maintenance mode the Raft group is not able to elect a leader as the
reported priority it to low (the priority override in maintenance is set to 0).

Fixed Raft implementation to make sure that it prioritize an
availability over the user priority preference. If a node is the only
voter the priority override is ignored.

Fixes: redpanda-data/cloudv2#6174

Signed-off-by: Michal Maslanka <[email protected]>
(cherry picked from commit 1b21f83)
Signed-off-by: Michal Maslanka <[email protected]>
(cherry picked from commit 04191fb)
Since now leader is elected earlier there is a race condition in
updating Health Report when a single node starts. Made the timeout
longer to allow the `feature_manager` to retry activating cluster
version.

Signed-off-by: Michal Maslanka <[email protected]>
(cherry picked from commit 5ce6ef8)
@mmaslankaprv mmaslankaprv added this to the v22.3.x-next milestone Jun 24, 2023
@mmaslankaprv mmaslankaprv added the kind/backport PRs targeting a stable branch label Jun 24, 2023
@mmaslankaprv mmaslankaprv marked this pull request as ready for review June 24, 2023 07:48
@mmaslankaprv mmaslankaprv merged commit ad6fae3 into redpanda-data:v22.3.x Jul 24, 2023
@BenPope BenPope modified the milestones: v22.3.x-next, v22.3.23 Aug 17, 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