OpenSearch/client
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
..
benchmark Converting randomized testing to create a separate unitTest task instead of replacing the builtin test task (#36311) 2018-12-19 08:25:20 +02:00
client-benchmark-noop-api-plugin Type removal - added deprecation warnings to _bulk apis (#36549) 2019-01-10 21:35:19 +00:00
rest Remove support for maxRetryTimeout from low-level REST client (#38085) 2019-02-06 08:43:47 +01:00
rest-high-level Update IndexTemplateMetaData to allow unknown fields (#38448) 2019-02-06 08:21:30 +01:00
sniffer Update httpclient for JDK 11 TLS engine (#37994) 2019-01-30 14:24:29 -07:00
test Testing conventions now checks for tests in main (#37321) 2019-01-24 17:30:50 +02:00
transport Testing conventions now checks for tests in main (#37321) 2019-01-24 17:30:50 +02:00