Low level REST client marks arbitrary node as dead when the connection pool is exhausted #40925
Labels
:Clients/Java Low Level REST Client
Minimal dependencies Java Client for Elasticsearch
Team:Data Management
Meta label for data/management team
Elasticsearch version 6.3.2
Plugins installed: []
JVM version: 1.8.144
OS version: Linux 3.13.0-88-generic #135-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
When
HttpAsyncClientBuilder::maxConnTotal
is exceeded, a leasing request is placed for a connection byAbstractNIOConnPool
with a deadline derived fromHttpAsyncClientBuilder::connectionRequestTimeout
. If the deadline is reached, a TimeoutException is propagated to the REST client reaching thefailed(Exception failure)
callback inRestClient::performRequestAsync
which marks the node as dead.However, the failure is a result of the connection pool in its entirety being exhausted and not the node itself having any issue.
The text was updated successfully, but these errors were encountered: