diff --git a/tests/queries/0_stateless/01361_failover_remote_num_tries.reference b/tests/queries/0_stateless/01361_failover_remote_num_tries.reference new file mode 100644 index 00000000000..64bb6b746dc --- /dev/null +++ b/tests/queries/0_stateless/01361_failover_remote_num_tries.reference @@ -0,0 +1 @@ +30 diff --git a/tests/queries/0_stateless/01361_failover_remote_num_tries.sh b/tests/queries/0_stateless/01361_failover_remote_num_tries.sh new file mode 100755 index 00000000000..eb30a9b10ee --- /dev/null +++ b/tests/queries/0_stateless/01361_failover_remote_num_tries.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +. $CURDIR/../shell_config.sh + +$CLICKHOUSE_CLIENT --connections_with_failover_max_tries 10 --query "SELECT hostName() FROM remote('128.1.2.3', default.tmp)" 2>&1 | grep -o 'connect timed out' | wc -l