mutation_id=$($CLICKHOUSE_CLIENT--query"SELECT mutation_id FROM system.mutations WHERE is_done=0 and database='${CLICKHOUSE_DATABASE}' and table='concurrent_mutate_kill' LIMIT 1")
if[!-z"$mutation_id"];then
$CLICKHOUSE_CLIENT--query"KILL MUTATION WHERE mutation_id='$mutation_id'" 1> /dev/null
mutation_id=$($CLICKHOUSE_CLIENT--query"SELECT mutation_id FROM system.mutations WHERE is_done = 0 and table like 'concurrent_kill_%' and database='${CLICKHOUSE_DATABASE}' LIMIT 1")
if[!-z"$mutation_id"];then
$CLICKHOUSE_CLIENT--query"KILL MUTATION WHERE mutation_id='$mutation_id'" 1> /dev/null
metadata_version=$($CLICKHOUSE_CLIENT--query"SELECT value FROM system.zookeeper WHERE path = '/clickhouse/tables/test_01593_concurrent_kill/replicas/$i/' and name = 'metadata_version'")