Skip to content

Commit

Permalink
tests: retry on timeout in partition balancer test
Browse files Browse the repository at this point in the history
In partition balancer maintenance mode test one of the nodes is made
unavailable. In some cases the node may be suspended while being a
`redpanda/controller` partition leader. In this case changing
configuration may result in timeout, which is perfectly fine. We should
allow Admin client to retry in this case.

Fixes: redpanda-data#14047

Signed-off-by: Michal Maslanka <michal@redpanda.com>
  • Loading branch information
mmaslankaprv committed Oct 16, 2023
1 parent f37e5f5 commit bdab660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/rptest/tests/partition_balancer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def test_maintenance_mode(self, kill_same_node):
node_id = self.redpanda.idx(node)

rpk = RpkTool(self.redpanda)
admin = Admin(self.redpanda)
admin = Admin(self.redpanda, retry_codes=[503, 504])

rpk.cluster_maintenance_enable(node, wait=True)
# the node should now report itself in maintenance mode
Expand Down

0 comments on commit bdab660

Please sign in to comment.