Skip to content

Commit

Permalink
Merge pull request #11489 from vbotbuildovich/backport-pr-11471-v22.3…
Browse files Browse the repository at this point in the history
….x-473

[v22.3.x] node_decommissioning_test: fix order of throttle and decommission
  • Loading branch information
ztlpn authored Jun 16, 2023
2 parents 6716614 + e186d64 commit 978bfc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/rptest/tests/nodes_decommissioning_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +591,13 @@ def test_decommissioning_finishes_after_manual_cancellation(self):
to_decommission = random.choice(self.redpanda.nodes)
node_id = self.redpanda.node_id(to_decommission)

# throttle recovery
self._set_recovery_rate(100)

survivor_node = self._not_decommissioned_node(node_id)
self.logger.info(f"decommissioning node: {node_id}", )
admin.decommission_broker(id=node_id)

self._set_recovery_rate(100)
# wait for some partitions to start moving
wait_until(lambda: self._partitions_moving(node=survivor_node),
timeout_sec=15,
Expand Down

0 comments on commit 978bfc3

Please sign in to comment.