mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Debug test 02490_benchmark_max_consecutive_errors
This commit is contained in:
parent
aac7e80299
commit
0de2b07119
@ -5,4 +5,11 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. "$CUR_DIR"/../shell_config.sh
|
||||
|
||||
$CLICKHOUSE_BENCHMARK -q 'select throwIf(1)' |& grep '^An error occurred while processing the query.*Exception:' -c
|
||||
$CLICKHOUSE_BENCHMARK --max-consecutive-errors 10 -q 'select throwIf(1)' |& grep '^An error occurred while processing the query.*Exception:' -c
|
||||
RES=$($CLICKHOUSE_BENCHMARK --max-consecutive-errors 10 -q 'select throwIf(1)' |& tee "${CLICKHOUSE_TMP}/${CLICKHOUSE_DATABASE}.log" | grep '^An error occurred while processing the query.*Exception:' -c)
|
||||
|
||||
if [ "$RES" -eq 10 ]
|
||||
then
|
||||
echo "$RES"
|
||||
else
|
||||
cat "${CLICKHOUSE_TMP}/${CLICKHOUSE_DATABASE}.log"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user