From 8eea4ae9cd04e24144bab17953e447d9890468ad Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 10 Jul 2018 22:00:07 +0300 Subject: [PATCH] Fixed race condition in test #2604 --- ...61_optimize_final_replicated_without_partition_zookeeper.sql | 2 ++ 1 file changed, 2 insertions(+) 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;