mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #23335 from ClickHouse/fix-flaky-test-1666
Fix flaky test 01666_merge_tree_max_query_limit.sh
This commit is contained in:
commit
733f9900fa
@ -15,13 +15,13 @@ drop table if exists simple;
|
|||||||
create table simple (i int, j int) engine = MergeTree order by i
|
create table simple (i int, j int) engine = MergeTree order by i
|
||||||
settings index_granularity = 1, max_concurrent_queries = 1, min_marks_to_honor_max_concurrent_queries = 2;
|
settings index_granularity = 1, max_concurrent_queries = 1, min_marks_to_honor_max_concurrent_queries = 2;
|
||||||
|
|
||||||
insert into simple select number, number + 100 from numbers(1000);
|
insert into simple select number, number + 100 from numbers(5000);
|
||||||
"
|
"
|
||||||
|
|
||||||
query_id="long_running_query-$CLICKHOUSE_DATABASE"
|
query_id="long_running_query-$CLICKHOUSE_DATABASE"
|
||||||
|
|
||||||
echo "Spin up a long running query"
|
echo "Spin up a long running query"
|
||||||
${CLICKHOUSE_CLIENT} --query "select sleepEachRow(0.01) from simple settings max_block_size = 1 format Null" --query_id "$query_id" > /dev/null 2>&1 &
|
${CLICKHOUSE_CLIENT} --query "select sleepEachRow(0.1) from simple settings max_block_size = 1 format Null" --query_id "$query_id" > /dev/null 2>&1 &
|
||||||
wait_for_query_to_start "$query_id"
|
wait_for_query_to_start "$query_id"
|
||||||
|
|
||||||
# query which reads marks >= min_marks_to_honor_max_concurrent_queries is throttled
|
# query which reads marks >= min_marks_to_honor_max_concurrent_queries is throttled
|
||||||
|
Loading…
Reference in New Issue
Block a user