Increase the number of attempts to start server

This commit is contained in:
Kruglov Pavel 2022-03-10 14:38:39 +03:00 committed by GitHub
parent 78c8029aeb
commit 91b9c11939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@ function start()
counter=0 counter=0
until clickhouse-client --query "SELECT 1" until clickhouse-client --query "SELECT 1"
do do
if [ "$counter" -gt 240 ] if [ "$counter" -gt ${1:-240} ]
then then
echo "Cannot start clickhouse-server" echo "Cannot start clickhouse-server"
cat /var/log/clickhouse-server/stdout.log cat /var/log/clickhouse-server/stdout.log
@ -296,7 +296,7 @@ then
# Start new server # Start new server
configure configure
start start 500
clickhouse-client --query "SELECT 'Server successfully started', 'OK'" >> /test_output/backward_compatibility_check_results.tsv \ clickhouse-client --query "SELECT 'Server successfully started', 'OK'" >> /test_output/backward_compatibility_check_results.tsv \
|| echo -e 'Server failed to start\tFAIL' >> /test_output/backward_compatibility_check_results.tsv || echo -e 'Server failed to start\tFAIL' >> /test_output/backward_compatibility_check_results.tsv