From 52de3598fc1e298a765aa43ccdc8e9cdde0c86fe Mon Sep 17 00:00:00 2001 From: John Spray Date: Fri, 8 Jul 2022 17:35:13 +0100 Subject: [PATCH] tests: mitigate MaintenanceTest failures by disabling leader_balancer The real fix will be to make the leader balancer aware of maintenance mode, but the test has become much more unstable since recent leader balancer changes to do more movements concurrently, so for the moment just run the test with the leader balancer disabled. Related: https://github.com/redpanda-data/redpanda/issues/4772 --- tests/rptest/tests/maintenance_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/rptest/tests/maintenance_test.py b/tests/rptest/tests/maintenance_test.py index 9a66e28ae538e..49fbf40ff21a8 100644 --- a/tests/rptest/tests/maintenance_test.py +++ b/tests/rptest/tests/maintenance_test.py @@ -25,7 +25,9 @@ class MaintenanceTest(RedpandaTest): TopicSpec(partition_count=20, replication_factor=3)) def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + super().__init__(*args, + extra_rp_conf={'enable_leader_balancer': False}, + **kwargs) self.admin = Admin(self.redpanda) self.rpk = RpkTool(self.redpanda) self._use_rpk = True