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

[v24.3.x] tests: made fast partition movement test a bit more tolerant #24392

Open
wants to merge 1 commit into
base: v24.3.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tests/rptest/tests/scaling_up_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,14 +475,15 @@ def verify_disk_usage(usage: dict, added_ids: list, percentage: float):
for id in added_ids:
added_node_usage = usage[id]
assert added_node_usage < percentage * avg_usage, \
f"Added node {id} disk usage {added_node_usage} is too large, "
f"expected usage to be smaller than {percentage * avg_usage} bytes"
(f"Added node {id} disk usage {added_node_usage} is too large, "
f"expected usage to be smaller than {percentage * avg_usage} bytes")

usage = self._kafka_usage(nodes=self.redpanda.nodes[0:5])
print_disk_usage(usage)

verify_disk_usage(usage,
[self.redpanda.node_id(self.redpanda.nodes[4])], 0.3)
[self.redpanda.node_id(self.redpanda.nodes[4])],
0.35)

# add sixth node
self.redpanda.start_node(self.redpanda.nodes[5])
Expand All @@ -494,7 +495,7 @@ def verify_disk_usage(usage: dict, added_ids: list, percentage: float):
verify_disk_usage(usage, [
self.redpanda.node_id(self.redpanda.nodes[4]),
self.redpanda.node_id(self.redpanda.nodes[5])
], 0.3)
], 0.35)
# verify that data can be read
self.consumer = KgoVerifierSeqConsumer(self.test_context,
self.redpanda,
Expand Down