Update 01600_parts_states_metrics_long.sh

This commit is contained in:
Alexey Milovidov 2024-07-27 19:51:05 +02:00 committed by GitHub
parent 7ab1664fe5
commit 5917210a02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,13 +17,13 @@ verify()
{
for i in {1..100}
do
result=$( $CLICKHOUSE_CLIENT -m --query="$verify_sql" )
result=$( $CLICKHOUSE_CLIENT --query="$verify_sql" )
[ "$result" = "1" ] && echo "$result" && break
sleep 0.1
if [[ $i -eq 100 ]]
then
$CLICKHOUSE_CLIENT --query "
$CLICKHOUSE_CLIENT --multiquery "
SELECT sumIf(value, metric = 'PartsActive'), sumIf(value, metric = 'PartsOutdated') FROM system.metrics;
SELECT sum(active), sum(NOT active) FROM system.parts;
SELECT sum(active), sum(NOT active) FROM system.projection_parts;