mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test.
This commit is contained in:
parent
0335c698e0
commit
f7b4039058
@ -0,0 +1,11 @@
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
1
|
14
tests/queries/0_stateless/01323_too_many_threads_bug.sql
Normal file
14
tests/queries/0_stateless/01323_too_many_threads_bug.sql
Normal file
@ -0,0 +1,14 @@
|
||||
drop table if exists table_01323_many_parts;
|
||||
|
||||
create table table_01323_many_parts (x UInt64) engine = MergeTree order by x partition by x % 100;
|
||||
set max_partitions_per_insert_block = 100;
|
||||
insert into table_01323_many_parts select number from numbers(100000);
|
||||
|
||||
set max_threads = 16;
|
||||
set log_queries = 1;
|
||||
select x from table_01323_many_parts order by x limit 10;
|
||||
|
||||
system flush logs;
|
||||
select length(thread_ids) <= 20 from system.query_log where event_date >= today() - 1 and lower(query) like '%select x from table_01323_many_parts%' and type = 'QueryFinish' order by query_start_time desc limit 1;
|
||||
|
||||
drop table if exists table_01323_many_parts;
|
Loading…
Reference in New Issue
Block a user