Debug test 02490_benchmark_max_consecutive_errors

This commit is contained in:
Alexey Milovidov 2024-07-27 16:19:20 +02:00
parent aac7e80299
commit 0de2b07119

View File

@ -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