Skip to content

Commit

Permalink
rptest: adjust compaction settings in datalake/compaction_test
Browse files Browse the repository at this point in the history
Because we now schedule adjacent segment compaction after sliding
window compaction, this test was having trouble trying to reach
the desired number of segments while producing.

Increase the timeout as well as the `log_compaction_interval_ms`
to allow the test to reach the desired number of segments.
  • Loading branch information
WillemKauf committed Feb 11, 2025
1 parent 9409574 commit 57d7ac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/rptest/tests/datalake/compaction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, test_ctx, *args, **kwargs):
"iceberg_enabled": "true",
"iceberg_catalog_commit_interval_ms": 5000,
"datalake_coordinator_snapshot_max_delay_secs": 10,
"log_compaction_interval_ms": 2000
"log_compaction_interval_ms": 5000
},
*args,
**kwargs)
Expand Down Expand Up @@ -66,7 +66,7 @@ def wait_until_segment_count(self, count):
err_msg=f"Timed out waiting for segment count to reach {count}")

def produce_until_segment_count(self, count):
timeout_sec = 30
timeout_sec = 60
deadline = time() + timeout_sec
while True:
current_segment_count = self.partition_segments()
Expand Down

0 comments on commit 57d7ac8

Please sign in to comment.