-
Notifications
You must be signed in to change notification settings - Fork 580
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
Check for perfect replicas distribution in ScalingUpTest.test_adding_nodes_to_cluster
#11054
Check for perfect replicas distribution in ScalingUpTest.test_adding_nodes_to_cluster
#11054
Conversation
In the criteria to determine that the partitions are now balanced, check whether max(replicas per node) is greater than min(replicas per node) by no more than 1, in this case the partitions are considered balanced without checking the 20% tolerance range. This enables distributions like [1,1,2] to be always successful regardless of the tolerance range. Fixes redpanda-data#11042
/ci-repeat 1 |
/ci-repeat 5 |
@dlex @mmaslankaprv i re-started a ci-repeat job, but I was a little curious about why these tests were being run. the code changed in this PR appear to only affect the scaling_up_test.py file. am i missing something here? |
Those are the 2 tests that are feiling in the CI in this PR fairly stably (basically 100%). I've checked with |
Thanks for the context @dlex, that makes sense. But they were existing failures? Do you have a hunch that your changes are related? |
I can't see how they can be related. However even though the failures were existing, they never were as stable as in this PR. So better be safe than sorry right? |
These CI failures can be ignored in the context of this PR. |
/backport v23.1.x |
/backport v22.3.x |
/backport v22.2.x |
In the criteria to determine that the partitions are now balanced, check whether max(replicas per node) is greater than min(replicas per node) by no more than 1, in this case the partitions are considered balanced without checking the 20% tolerance range.
This enables distributions like [1,1,2] to be always successful regardless of the tolerance range.
Fixes #11042.
Backports Required
Release Notes