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.1.x] Fixed Raft voter priority override with single replica topics #11544

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #10800

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 <michal@redpanda.com>
(cherry picked from commit 1b21f83)
Signed-off-by: Michal Maslanka <michal@redpanda.com>
(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 <michal@redpanda.com>
(cherry picked from commit 5ce6ef8)
@vbotbuildovich vbotbuildovich added this to the v23.1.x-next milestone Jun 20, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jun 20, 2023
@mmaslankaprv mmaslankaprv marked this pull request as ready for review June 22, 2023 13:34
@vshtokman vshtokman modified the milestones: v23.1.x-next, v23.1.13 Jun 22, 2023
@mmaslankaprv mmaslankaprv merged commit 6b1c6f5 into redpanda-data:v23.1.x Jun 22, 2023
@RafalKorepta RafalKorepta mentioned this pull request Jul 3, 2023
7 tasks
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.

4 participants