Merge pull request #61477 from CurtizJ/fix-test-polymorphic-parts

Fix test `test_polymorphic_parts`
This commit is contained in:
Alexey Milovidov 2024-03-16 13:51:06 +03:00 committed by GitHub
commit 24e77a6b5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -332,7 +332,13 @@ def test_different_part_types_on_replicas(start_cluster, table, part_type):
for _ in range(3): for _ in range(3):
insert_random_data(table, leader, 100) insert_random_data(table, leader, 100)
leader.query("OPTIMIZE TABLE {} FINAL".format(table)) exec_query_with_retry(
leader,
"OPTIMIZE TABLE {} FINAL".format(table),
settings={"optimize_throw_if_noop": 1},
silent=True,
)
follower.query("SYSTEM SYNC REPLICA {}".format(table), timeout=20) follower.query("SYSTEM SYNC REPLICA {}".format(table), timeout=20)
expected = "{}\t1\n".format(part_type) expected = "{}\t1\n".format(part_type)