mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Fix 01293_system_distribution_queue test flackiness
This commit is contained in:
parent
42acb627fb
commit
1a6c1d1796
@ -10,6 +10,11 @@ select * from system.distribution_queue;
|
|||||||
select 'INSERT';
|
select 'INSERT';
|
||||||
system stop distributed sends dist_01293;
|
system stop distributed sends dist_01293;
|
||||||
insert into dist_01293 select * from numbers(10);
|
insert into dist_01293 select * from numbers(10);
|
||||||
|
-- metrics updated only after distributed_directory_monitor_sleep_time_ms
|
||||||
|
set distributed_directory_monitor_sleep_time_ms=10;
|
||||||
|
-- 1 second should guarantee metrics update
|
||||||
|
-- XXX: but this is kind of quirk, way more better will be account this metrics without any delays.
|
||||||
|
select sleep(1) format Null;
|
||||||
select is_blocked, error_count, data_files, data_compressed_bytes>100 from system.distribution_queue;
|
select is_blocked, error_count, data_files, data_compressed_bytes>100 from system.distribution_queue;
|
||||||
system flush distributed dist_01293;
|
system flush distributed dist_01293;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user