ClickHouse/tests/queries/0_stateless/01361_fover_remote_num_tries.sh

7 lines
301 B
Bash
Raw Normal View History

2020-07-05 00:44:26 +00:00
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2020-08-01 00:51:12 +00:00
. "$CURDIR"/../shell_config.sh
2020-07-05 00:44:26 +00:00
2020-07-06 06:09:23 +00:00
$CLICKHOUSE_CLIENT --connections_with_failover_max_tries 10 --query "SELECT hostName() FROM remote('128.1.2.3', default.tmp)" 2>&1 | grep -o -P 'connect timed out|Network is unreachable' | wc -l