2020-07-05 00:44:26 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-09-07 15:57:29 +00:00
|
|
|
# Tags: no-fasttest
|
2020-07-05 00:44:26 +00:00
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2020-12-28 11:46:53 +00:00
|
|
|
# shellcheck source=../shell_config.sh
|
2020-08-01 00:51:12 +00:00
|
|
|
. "$CURDIR"/../shell_config.sh
|
2020-07-05 00:44:26 +00:00
|
|
|
|
2024-01-19 12:51:30 +00:00
|
|
|
$CLICKHOUSE_CLIENT --connections_with_failover_max_tries 10 --connect_timeout_with_failover_ms 1 --query "SELECT hostName() FROM remote('128.1.2.3', default.tmp)" 2>&1 | grep -o -P 'Timeout exceeded while connecting to socket|Network is unreachable|Timeout: connect timed out' | wc -l
|