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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
386 B
Bash
Raw Normal View History

2020-07-05 00:44:26 +00:00
#!/usr/bin/env bash
# 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
2023-03-07 15:34:39 +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 'Timeout exceeded while connecting to socket|Network is unreachable' | wc -l