2021-09-12 12:35:27 +00:00
|
|
|
-- Tags: no-parallel
|
2022-02-11 14:15:56 +00:00
|
|
|
set prefer_localhost_replica = 1;
|
2021-09-12 12:35:27 +00:00
|
|
|
|
2020-06-02 23:47:32 +00:00
|
|
|
drop table if exists null_01293;
|
|
|
|
drop table if exists dist_01293;
|
|
|
|
|
|
|
|
create table null_01293 (key Int) engine=Null();
|
|
|
|
create table dist_01293 as null_01293 engine=Distributed(test_cluster_two_shards, currentDatabase(), null_01293, key);
|
|
|
|
|
|
|
|
-- no rows, since no active monitor
|
|
|
|
select * from system.distribution_queue;
|
|
|
|
|
|
|
|
select 'INSERT';
|
|
|
|
system stop distributed sends dist_01293;
|
|
|
|
insert into dist_01293 select * from numbers(10);
|
2021-05-04 19:16:36 +00:00
|
|
|
select is_blocked, error_count, data_files, data_compressed_bytes>100, broken_data_files, broken_data_compressed_bytes from system.distribution_queue where database = currentDatabase();
|
2020-06-02 23:47:32 +00:00
|
|
|
system flush distributed dist_01293;
|
|
|
|
|
|
|
|
select 'FLUSH';
|
2021-05-04 19:16:36 +00:00
|
|
|
select is_blocked, error_count, data_files, data_compressed_bytes, broken_data_files, broken_data_compressed_bytes from system.distribution_queue where database = currentDatabase();
|
2020-06-02 23:47:32 +00:00
|
|
|
|
|
|
|
select 'UNBLOCK';
|
|
|
|
system start distributed sends dist_01293;
|
2021-05-04 19:16:36 +00:00
|
|
|
select is_blocked, error_count, data_files, data_compressed_bytes, broken_data_files, broken_data_compressed_bytes from system.distribution_queue where database = currentDatabase();
|
2020-11-11 15:29:36 +00:00
|
|
|
|
|
|
|
drop table null_01293;
|
|
|
|
drop table dist_01293;
|