mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Update 01600_parts_states_metrics_long.sh
This commit is contained in:
parent
7ab1664fe5
commit
5917210a02
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user