Merge pull request #44123 from azat/tests/01293_show_clusters

tests: exclude flaky columns from SHOW CLUSTERS test
This commit is contained in:
Alexey Milovidov 2022-12-17 04:13:23 +03:00 committed by GitHub
commit 219343d8b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -1,2 +1,2 @@
test_shard_localhost
test_shard_localhost 1 1 1 localhost ::1 9000 1 default 0 0 0
test_shard_localhost 1 1 1 localhost ::1 9000 1 default

View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
$CLICKHOUSE_CLIENT -q "show clusters like 'test_shard%' limit 1"
# cluster,shard_num,shard_weight,replica_num,host_name,host_address,port,is_local,user,default_database[,errors_count,slowdowns_count,estimated_recovery_time]
$CLICKHOUSE_CLIENT -q "show cluster 'test_shard_localhost'" | cut -f-10

View File

@ -1,4 +0,0 @@
-- don't show all clusters to reduce dependency on the configuration of server
set send_logs_level = 'fatal';
show clusters like 'test_shard%' limit 1;
show cluster 'test_shard_localhost';