Skip to content

Commit

Permalink
Slightly better
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Dec 9, 2023
1 parent e1923a7 commit c45906d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware/hardware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ uptime

echo "Starting clickhouse-server"

./clickhouse server >/dev/null 2>&1 &
./clickhouse server >server.log 2>&1 &
PID=$!

function finish {
Expand All @@ -33,7 +33,7 @@ echo "Waiting for clickhouse-server to start"
for i in {1..300}; do
sleep 1
./clickhouse client --query "SELECT 'Ok.'" 2>/dev/null && break || echo -n '.'
if [[ $i == 300 ]]; then exit 1; fi
if [[ $i == 300 ]]; then cat server.log; exit 1; fi
done

if [[ $(./clickhouse client --query "EXISTS hits") == '1' && $(./clickhouse client --query "SELECT count() FROM hits") == '100000000' ]]; then
Expand Down

0 comments on commit c45906d

Please sign in to comment.