mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Make 01085_max_distributed_connections less flaky
This commit is contained in:
parent
38de183379
commit
0c5d26b647
@ -10,13 +10,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
while true
|
||||
do
|
||||
opts=(
|
||||
--max_distributed_connections 9
|
||||
--max_distributed_connections 20
|
||||
--max_threads 1
|
||||
--query "SELECT sleepEachRow(1) FROM remote('127.{2..10}', system.one)"
|
||||
--query "SELECT sleepEachRow(1) FROM remote('127.{2..21}', system.one)"
|
||||
--format Null
|
||||
)
|
||||
# 5 less then 9 seconds (9 streams), but long enough to cover possible load peaks
|
||||
# 10 less then 20 seconds (20 streams), but long enough to cover possible load peaks
|
||||
# "$@" left to pass manual options (like --experimental_use_processors 0) during manual testing
|
||||
|
||||
timeout 5s ${CLICKHOUSE_CLIENT} "${opts[@]}" "$@" && break
|
||||
timeout 10s ${CLICKHOUSE_CLIENT} "${opts[@]}" "$@" && break
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user