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.2.x] Partition balancer full_nodes test: wait until the balancer is stable #6587

Merged
merged 3 commits into from
Sep 30, 2022

Conversation

vbotbuildovich
Copy link
Collaborator

Backport from pull request: #6540.
Fixes #6586,

Waiting for greater than 70% average disk usage is a bit flaky because
of changing distribution of fallocated chunks among segments. Instead we
simply wait for the producer to finish. If insufficient data will be
produced to have a meaningful test run, we'll fail at the next stage
where we wait for the "stalled" balancer status.

(cherry picked from commit fa574e1)
Sometimes the node can violate the disk limit again even after the
balancer reported the ready status (e.g. the leader balancer initiated a
leadership transfer that resulted in a segment roll and, consequently,
fallocation). To avoid this we check that the ready status has been
stable for a few balancer ticks. This will fix the disk usage assertion
fails and will allow us to check that the balancer does not exhibit
undesirable flaps.

Fixes redpanda-data#5884

(cherry picked from commit aebcd4b)
@vbotbuildovich vbotbuildovich added this to the v22.2.x-next milestone Sep 30, 2022
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Sep 30, 2022
@ztlpn ztlpn marked this pull request as ready for review September 30, 2022 14:01
Copy link
Contributor

@ztlpn ztlpn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clean backport

@ztlpn ztlpn merged commit 2254525 into redpanda-data:v22.2.x Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants