mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Backports #78180 to 7.x. Add a deprecation warning and a system property es.cluster_health.request_timeout_200 to opt in for returning 200 which will be the default in 8.0.0 Fixes #70849
This commit is contained in:
parent
5d9001c7c7
commit
03bd55d197
3 changed files with 52 additions and 3 deletions
|
@ -304,6 +304,9 @@ public class ClusterClientIT extends ESRestHighLevelClientTestCase {
|
|||
assertThat(response.status(), equalTo(RestStatus.REQUEST_TIMEOUT));
|
||||
assertThat(response.getStatus(), equalTo(ClusterHealthStatus.RED));
|
||||
assertNoIndices(response);
|
||||
assertWarnings("The HTTP status code for a cluster health timeout will be changed from 408 to 200 in a " +
|
||||
"future version. Set the [es.cluster_health.request_timeout_200] system property to [true] to suppress this message and " +
|
||||
"opt in to the future behaviour now.");
|
||||
}
|
||||
|
||||
public void testRemoteInfo() throws Exception {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue