Skip to content

Commit 833c1e1

Browse files
committed
tests/migrations: longer timeout for scale tests
1 parent 1ec59c6 commit 833c1e1

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

tests/rptest/scale_tests/data_migrations_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class DataMigrationsScaleTest(Base):
2020
def __init__(self, *args, **kwargs):
2121
super().__init__(*args,
2222
**kwargs,
23+
transition_timeout=600,
2324
extra_rp_conf={
2425
'topic_partitions_per_shard':
2526
PARTITIONS_PER_SHARD,

tests/rptest/tests/data_migrations.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ class DataMigrationsTestBase(RedpandaTest):
8484

8585
log_segment_size = 10 * 1024
8686

87-
def __init__(self, test_context: TestContext, *args, **kwargs):
87+
def __init__(self,
88+
test_context: TestContext,
89+
*args,
90+
transition_timeout: int = 90,
91+
**kwargs):
8892
kwargs['si_settings'] = SISettings(
8993
test_context=test_context,
9094
log_segment_size=self.log_segment_size,
@@ -93,6 +97,7 @@ def __init__(self, test_context: TestContext, *args, **kwargs):
9397
cloud_storage_enable_remote_write=True,
9498
)
9599
super().__init__(test_context=test_context, *args, **kwargs)
100+
self.transition_timeout = transition_timeout
96101
self.flaky_admin = Admin(self.redpanda, retry_codes=[503, 504])
97102
self.admin = Admin(self.redpanda)
98103

@@ -178,7 +183,7 @@ def migration_in_one_of_states():
178183
self.logger.info(f'waiting for {" or ".join(states)}')
179184
wait_until(
180185
migration_in_one_of_states,
181-
timeout_sec=90,
186+
timeout_sec=self.transition_timeout,
182187
backoff_sec=1,
183188
err_msg=
184189
f"Failed waiting for migration {id} to reach one of {states} states"
@@ -212,7 +217,7 @@ def migration_is_absent(id: int):
212217

213218
wait_until(
214219
lambda: migration_is_absent(migration_id),
215-
timeout_sec=90,
220+
timeout_sec=self.transition_timeout,
216221
backoff_sec=2,
217222
err_msg=f"Expected migration with id {migration_id} is absent")
218223

0 commit comments

Comments
 (0)