Skip to content

Commit

Permalink
tests: increased tolerance in fast addition tests
Browse files Browse the repository at this point in the history
In order to make the test stable increased a tolerance on the size of
data on a node that joins the cluster. The slight increase doesn't
influence the test correctness but makes it less vulnerable to small
changes in size of partition metadata.

Fixes: #20224

Signed-off-by: Michał Maślanka <michal@redpanda.com>
  • Loading branch information
mmaslankaprv committed Jul 25, 2024
1 parent 56cd7c4 commit 7674dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/rptest/tests/scaling_up_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def verify_disk_usage(usage: dict, added_ids: list, percentage: float):
print_disk_usage(usage)

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

# add sixth node
self.redpanda.start_node(self.redpanda.nodes[5])
Expand All @@ -494,7 +494,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.2)
], 0.3)
# verify that data can be read
self.consumer = KgoVerifierSeqConsumer(self.test_context,
self.redpanda,
Expand Down

0 comments on commit 7674dc0

Please sign in to comment.