OpenSearch/docs/java-rest/low-level
Luca Cavanna a7046e001c
Remove support for maxRetryTimeout from low-level REST client (#38085)
We have had various reports of problems caused by the maxRetryTimeout
setting in the low-level REST client. Such setting was initially added
in the attempts to not have requests go through retries if the request
already took longer than the provided timeout.

The implementation was problematic though as such timeout would also
expire in the first request attempt (see #31834), would leave the
request executing after expiration causing memory leaks (see #33342),
and would not take into account the http client internal queuing (see #25951).

Given all these issues, it seems that this custom timeout mechanism 
gives little benefits while causing a lot of harm. We should rather rely 
on connect and socket timeout exposed by the underlying http client 
and accept that a request can overall take longer than the configured 
timeout, which is the case even with a single retry anyways.

This commit removes the `maxRetryTimeout` setting and all of its usages.
2019-02-06 08:43:47 +01:00
..
configuration.asciidoc Remove support for maxRetryTimeout from low-level REST client (#38085) 2019-02-06 08:43:47 +01:00
index.asciidoc Revert "[Docs] Update Java Low-Level documentation to reflect shaded deps (#25882)" (#26411) 2017-08-29 09:26:36 -05:00
sniffer.asciidoc LLClient: Support host selection (#30523) 2018-06-11 17:07:27 -04:00
usage.asciidoc Remove support for maxRetryTimeout from low-level REST client (#38085) 2019-02-06 08:43:47 +01:00