Skip to content

Commit

Permalink
Merge pull request redpanda-data#17474 from dotnwat/fix-14139
Browse files Browse the repository at this point in the history
rptest: Fix throttling test
  • Loading branch information
Lazin authored Mar 29, 2024
2 parents ffacc9d + a53b42f commit eb320d9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tests/rptest/tests/e2e_shadow_indexing_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ class EndToEndThrottlingTest(RedpandaTest):
def __init__(self, test_context):
self.si_settings = SISettings(
test_context,
log_segment_size=1024,
log_segment_size=1024 * 1024,
fast_uploads=True,
# Set small throughput limit to trigger throttling
cloud_storage_max_throughput_per_shard=8 * 1024 * 1024)
Expand Down Expand Up @@ -1388,17 +1388,6 @@ def test_throttling(self, cloud_storage_type):
self.logger.info("Start consumer")
self.consume()

self.logger.info("Stop nodes")
for node in self.redpanda.nodes:
self.redpanda.stop_node(node, timeout=120)

self.logger.info("Start nodes")
for node in self.redpanda.nodes:
self.redpanda.start_node(node, timeout=120)

self.logger.info("Restart consumer")
self.consume()

times_throttled = self.get_throttling_metric()
self.logger.info(f"Consumer was throttled {times_throttled} times")
assert times_throttled > 0, f"Expected consumer to be throttled, metric value: {times_throttled}"
Expand Down

0 comments on commit eb320d9

Please sign in to comment.