mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix query hang with connections_with_failover_max_tries = 0 (endless loop)
This commit is contained in:
parent
a21b42f1f8
commit
2947eff878
@ -229,7 +229,7 @@ PoolWithFailoverBase<TNestedPool>::getMany(
|
||||
|
||||
ShuffledPool & shuffled_pool = shuffled_pools[i];
|
||||
TryResult & result = try_results[i];
|
||||
if (shuffled_pool.error_count >= max_tries || !result.entry.isNull())
|
||||
if (max_tries && (shuffled_pool.error_count >= max_tries || !result.entry.isNull()))
|
||||
continue;
|
||||
|
||||
std::string fail_message;
|
||||
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1,3 @@
|
||||
-- regression for endless loop with connections_with_failover_max_tries=0
|
||||
set connections_with_failover_max_tries=0;
|
||||
select * from remote('127.2', system.one);
|
Loading…
Reference in New Issue
Block a user