Fix 01791_dist_INSERT_block_structure_mismatch flakiness

Add SYSTEM STOP DISTRIBUTED SENDS to force messages from SYSTEM FLUSH
DISTRIBUTED query context.
This commit is contained in:
Azat Khuzhin 2021-07-08 00:48:15 +03:00
parent 0608eb41ce
commit 20cbca87de
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
<Warning> DistributedBlockOutputStream: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 1)), implicit conversion will be done.
<Warning> DistributedBlockOutputStream: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 1)), implicit conversion will be done.
<Warning> default.dist_01683.DirectoryMonitor: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 0)), implicit conversion will be done
<Warning> default.dist_01683.DirectoryMonitor: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 0)), implicit conversion will be done
1
1
2

View File

@ -18,6 +18,8 @@ $CLICKHOUSE_CLIENT --prefer_localhost_replica=0 -nm -q "
INSERT INTO dist_01683 VALUES (1),(2);
SET insert_distributed_sync=0;
-- force log messages from the 'SYSTEM FLUSH DISTRIBUTED' context
SYSTEM STOP DISTRIBUTED SENDS dist_01683;
INSERT INTO dist_01683 VALUES (1),(2);
SYSTEM FLUSH DISTRIBUTED dist_01683;