From 1ef96466288201147337e09cc4205745d8bb83ef Mon Sep 17 00:00:00 2001 From: Alexey Zatelepin Date: Thu, 28 Sep 2023 02:01:48 +0200 Subject: [PATCH] ducky/partition_balancer_test: fix full_node_test Disable leader balancer after partition balancer has finished its work, because leadership transfers will create new segments that can cause disk usage to go over limit again even after we've verified that everything is stable. Fixes https://github.com/redpanda-data/redpanda/issues/9788 (cherry picked from commit f0e69dd09a3b0d69a18a62d0d7d9f80482056e1e) --- tests/rptest/tests/partition_balancer_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/rptest/tests/partition_balancer_test.py b/tests/rptest/tests/partition_balancer_test.py index 095441068187..e1c5cfb72c0d 100644 --- a/tests/rptest/tests/partition_balancer_test.py +++ b/tests/rptest/tests/partition_balancer_test.py @@ -662,6 +662,12 @@ def is_ready_and_stable(s): nonlocal ready_appeared_at if s["status"] == "ready": if ready_appeared_at is None: + # Disable leader balancer after partition balancer has finished its work, + # because leadership transfers will create new segments that can cause disk + # usage to go over limit again even after we've verified that everything + # is stable. + self.redpanda.set_cluster_config( + {"enable_leader_balancer": False}) ready_appeared_at = time.time() else: # ready status is stable for 11 seconds, should be enough for 3 ticks to pass