fix test_polymorphic_parts

This commit is contained in:
Anton Popov 2024-03-15 22:30:49 +00:00
parent e50ebe13f2
commit bc6cd6e769

View File

@ -332,7 +332,13 @@ def test_different_part_types_on_replicas(start_cluster, table, part_type):
for _ in range(3):
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)
expected = "{}\t1\n".format(part_type)