mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Fix 01460_DistributedFilesToInsert (correctly set dist table settings)
This commit is contained in:
parent
df5a26738d
commit
e2d8ba893a
@ -2,33 +2,31 @@
|
||||
-- (i.e. no .bin files and hence no sending is required)
|
||||
set prefer_localhost_replica=0;
|
||||
|
||||
set distributed_directory_monitor_sleep_time_ms=50;
|
||||
|
||||
drop table if exists data_01460;
|
||||
drop table if exists dist_01460;
|
||||
|
||||
create table data_01460 as system.one engine=Null();
|
||||
create table dist_01460 as data_01460 engine=Distributed(test_shard_localhost, currentDatabase(), data_01460);
|
||||
create table dist_01460 as data_01460 engine=Distributed(test_shard_localhost, currentDatabase(), data_01460) settings monitor_sleep_time_ms=50;
|
||||
|
||||
select 'INSERT';
|
||||
select value from system.metrics where metric = 'DistributedFilesToInsert';
|
||||
insert into dist_01460 select * from system.one;
|
||||
select sleep(1) format Null; -- distributed_directory_monitor_sleep_time_ms
|
||||
select sleep(1) format Null; -- monitor_sleep_time_ms
|
||||
select value from system.metrics where metric = 'DistributedFilesToInsert';
|
||||
|
||||
select 'STOP/START DISTRIBUTED SENDS';
|
||||
system stop distributed sends dist_01460;
|
||||
insert into dist_01460 select * from system.one;
|
||||
select sleep(1) format Null; -- distributed_directory_monitor_sleep_time_ms
|
||||
select sleep(1) format Null; -- monitor_sleep_time_ms
|
||||
select value from system.metrics where metric = 'DistributedFilesToInsert';
|
||||
system start distributed sends dist_01460;
|
||||
select sleep(1) format Null; -- distributed_directory_monitor_sleep_time_ms
|
||||
select sleep(1) format Null; -- monitor_sleep_time_ms
|
||||
select value from system.metrics where metric = 'DistributedFilesToInsert';
|
||||
|
||||
select 'FLUSH DISTRIBUTED';
|
||||
system stop distributed sends dist_01460;
|
||||
insert into dist_01460 select * from system.one;
|
||||
select sleep(1) format Null; -- distributed_directory_monitor_sleep_time_ms
|
||||
select sleep(1) format Null; -- monitor_sleep_time_ms
|
||||
select value from system.metrics where metric = 'DistributedFilesToInsert';
|
||||
system flush distributed dist_01460;
|
||||
select value from system.metrics where metric = 'DistributedFilesToInsert';
|
||||
@ -36,7 +34,7 @@ select value from system.metrics where metric = 'DistributedFilesToInsert';
|
||||
select 'DROP TABLE';
|
||||
system stop distributed sends dist_01460;
|
||||
insert into dist_01460 select * from system.one;
|
||||
select sleep(1) format Null; -- distributed_directory_monitor_sleep_time_ms
|
||||
select sleep(1) format Null; -- monitor_sleep_time_ms
|
||||
select value from system.metrics where metric = 'DistributedFilesToInsert';
|
||||
drop table dist_01460;
|
||||
select value from system.metrics where metric = 'DistributedFilesToInsert';
|
||||
|
Loading…
Reference in New Issue
Block a user