diff --git a/dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql b/dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql index 372b09d2c23..4f241e96742 100644 --- a/dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql @@ -9,10 +9,12 @@ INSERT INTO test.partitioned_by_tuple_replica1 VALUES ('2000-01-01', 1, 'first', OPTIMIZE TABLE test.partitioned_by_tuple_replica1; +SYSTEM SYNC REPLICA test.partitioned_by_tuple_replica2; SELECT * FROM test.partitioned_by_tuple_replica2 ORDER BY d, x, w, y; OPTIMIZE TABLE test.partitioned_by_tuple_replica1 FINAL; +SYSTEM SYNC REPLICA test.partitioned_by_tuple_replica2; SELECT * FROM test.partitioned_by_tuple_replica2 ORDER BY d, x, w, y; DROP TABLE test.partitioned_by_tuple_replica1;