This commit is contained in:
avogar 2022-03-24 19:32:14 +00:00
parent 151067a3f9
commit c63bc05292
2 changed files with 13 additions and 0 deletions

View File

@ -6,6 +6,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
counter=0 retries=60
I=0
while [[ $counter -lt $retries ]]; do
I=$((I + 1))
@ -14,5 +15,16 @@ while [[ $counter -lt $retries ]]; do
((++counter))
done
echo 'Ok'
counter=0
I=0
while [[ $counter -lt $retries ]]; do
I=$((I + 1))
TYPE=$(perl -e "print 'Array(' x $I; print 'UInt8'; print ')' x $I")
${CLICKHOUSE_CLIENT} --prefer_localhost_replica=0 --max_parser_depth 1000000 --query "SELECT * FROM remote('127.0.0.{1,2}', generateRandom('x $TYPE', 1, 1, 1)) LIMIT 1 FORMAT Null" 2>&1 | grep -q -F 'Maximum parse depth' && break;
((++counter))
done
#echo "I = ${I}"
echo 'Ok'