Merge pull request #73102 from tuanpach/fix-flaky-test-test-replicated-merge-tree-s3-zero-copy-drop-table

Fix flaky test: test_replicated_merge_tree_s3_zero_copy/test.py::test_drop_table
This commit is contained in:
tuanpach 2024-12-12 23:30:39 +00:00 committed by GitHub
commit 296677b9ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,11 +202,12 @@ def test_drop_table(cluster):
node.query("drop table test_drop_table")
# It should not be possible to create a replica with the same path until the previous one is completely dropped
for i in range(0, 100):
for i in range(0, 50):
node.query_and_get_answer_with_error(
"create table if not exists test_drop_table (n int) "
"engine=ReplicatedMergeTree('/test/drop_table', '1') "
"order by n partition by n % 99 settings storage_policy='s3'"
"settings keeper_max_retries=3, keeper_retry_max_backoff_ms=500"
)
time.sleep(0.2)