-
Notifications
You must be signed in to change notification settings - Fork 698
partition_balancer: report quorum loss moves as... #28393
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
partition_balancer: report quorum loss moves as... #28393
Conversation
immutable nodes_decommissioning_test.py ::NodesDecommissioningTest .test_decommissioning_node_rf_1_replica would periodically fail on partitions not being reported as allocation failures. This happened because there was a race. A partition would NOT be reported as an allocation failure if there was a move in progress. In this test, the node is stopped and then the decommed. As a result, the broker could be picked up as unresponsive, which would init a move before the decomission is made visible to the planner. This commit changes pbp to report in-progress moves with quorum loss on the original replica set as immutable.
|
/ci-repeat 1 |
CI test resultstest results on build#75724
test results on build#75764
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a race condition in the partition balancer planner where partitions that have lost quorum during an in-progress move were not being reported as allocation failures. The fix ensures that partitions with an in-flight move and quorum loss on the original replica set are now correctly reported as immutable.
Key Changes:
- Added quorum loss detection for partitions during in-progress moves
- Partitions that lost quorum during moves are now reported as immutable with
no_quorumreason - Restructured control flow to handle the new quorum loss case before attempting cancellations
bharathv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link the jira?
|
|
/backport v25.3.x |
|
/backport v25.2.x |
|
/backport v25.1.x |
|
/backport v24.3.x |
...immutable
nodes_decommissioning_test.py
::NodesDecommissioningTest
.test_decommissioning_node_rf_1_replica
would periodically fail on partitions not being reported as allocation failures. This happened because there was a race. A partition would NOT be reported as an allocation failure if there was a move in progress.
In this test, the node is stopped and then the decommed. As a result, the broker could be picked up as unresponsive, which would init a move before the decomission is made visible to the planner.
This commit changes pbp to report in-progress moves with quorum loss on the original replica set as immutable.
Backports Required
Release Notes
Improvements