mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Avoid hanging clickhouse-benchmark if connection fails (i.e. on EMFILE)
This commit is contained in:
parent
2796aa333f
commit
3f0dd40c69
@ -313,6 +313,7 @@ private:
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
shutdown = true;
|
||||
pool.wait();
|
||||
throw;
|
||||
}
|
||||
|
@ -0,0 +1,3 @@
|
||||
Loaded 1 queries.
|
||||
I/O error: Too many open files
|
||||
70
|
10
tests/queries/0_stateless/01955_clickhouse_benchmark_connection_hang.sh
Executable file
10
tests/queries/0_stateless/01955_clickhouse_benchmark_connection_hang.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# shellcheck disable=SC2086
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CURDIR"/../shell_config.sh
|
||||
|
||||
# Limit number of files to 50, and we will get EMFILE for some of socket()
|
||||
prlimit --nofile=50 $CLICKHOUSE_BENCHMARK --iterations 1 --concurrency 50 --query 'select 1' 2>&1
|
||||
echo $?
|
Loading…
Reference in New Issue
Block a user