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.1.x] admin: reject maintenance mode req on 1 node cluster #4986

Merged

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Jun 1, 2022

Cover letter

Backport #4921

Release notes

Improvements

  • The Admin API will now refuse to place a node in maintenance mode if it is the only node in the cluster

jcsp added 2 commits June 1, 2022 13:36
If a single node cluster puts its only node in maintenance
mode, then there is no node elegible to become controller
leader, and all further progress is stopped.

Fixes redpanda-data#4338

(cherry picked from commit b970b2d)
If a system got into the bad state of issue redpanda-data#4338, then
their cluster is broken until we replay the controller
log _without_ putting the node into maintenance mode.

Related redpanda-data#4338

(cherry picked from commit 20f3597)
@jcsp jcsp marked this pull request as ready for review June 1, 2022 12:41
@jcsp jcsp added kind/bug Something isn't working area/redpanda labels Jun 1, 2022
@dotnwat
Copy link
Member

dotnwat commented Jun 1, 2022

failure is #4887

test_id: rptest.tests.topic_recovery_test.TopicRecoveryTest.test_size_based_retention

@jcsp jcsp merged commit 5adb585 into redpanda-data:v22.1.x Jun 1, 2022
@jcsp jcsp deleted the backport-issue-4388-1node-maintainance branch June 1, 2022 14:56
@BenPope BenPope added this to the v22.1.4 milestone Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants