-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Return 200 OK response code for a cluster health timeout #78968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
arteam
merged 52 commits into
elastic:master
from
arteam:return-200-for-cluster-health-8.0
Nov 6, 2021
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
d025da1
Return 200 for cluster health timeout
arteam 7e78762
Check RestApi compatibility version
arteam 1852118
Update docs
arteam 310dfb6
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine d0b3cbf
Skip request timeout for BWC
arteam 41f5ba5
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine 8adaee0
Merge branch 'master' into return-200-for-cluster-health-8.0
arteam 3fd4578
Return 200 OK only for ES8
arteam 987609c
Remove deprecation warnings
arteam 0b7c651
Be more clear about returning 408 in the 7.x compatibility mode
arteam b45d6ef
Merge branch 'master' into return-200-for-cluster-health-8.0
arteam 2c76705
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine 7871ddf
Update server/src/test/java/org/elasticsearch/action/admin/cluster/he…
arteam 9c102c8
Update docs/reference/migration/migrate_8_0/cluster.asciidoc
arteam 9d01346
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine 1c99537
Add tests for v7 compatibility layer
arteam 7ce56d3
Add a warning when return_200_for_cluster_health_timeout is used
arteam bb0747d
Optimize imports
arteam fa758fd
return_200_for_cluster_health_timeout yields a warning in 8.0
arteam 7c3aa8d
Add features: "warnings"
arteam 79193e1
Revert "return_200_for_cluster_health_timeout yields a warning in 8.0"
arteam 1e94ccf
Emit the warning only in v8 compatibility mode
arteam b795883
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine cb2a688
Update server/src/main/java/org/elasticsearch/action/admin/cluster/he…
arteam 6ec2e8e
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine 7203b69
Add changelog
arteam 95f6968
Update area
arteam 4b34a12
Correct area name
arteam dd40c6f
Update top area to CRUD
arteam a0a49af
Update warning message
arteam 10320a8
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine f0f5a16
Merge branch 'master' into return-200-for-cluster-health-8.0
arteam 3fec6af
Merge remote-tracking branch 'origin/return-200-for-cluster-health-8.…
arteam 22a9d9c
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine a4b8a57
Move cluster_health_request_timeout validation to RestClusterHealthAc…
arteam ef6f5bb
Using return_200_for_cluster_health_timeout yeilds a warning for 8.0.0
arteam f9b7d36
No warnings by default
arteam c99a8d0
Reformat
arteam f936bf4
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine fc765e8
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine 146163b
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine 1f463c2
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine 5a9917e
Revert "Using return_200_for_cluster_health_timeout yeilds a warning …
arteam 64eb0df
Mute cluster.health/20_request_timeout/cluster health request timeout…
arteam c2b800c
Extract RETURN_200_FOR_CLUSTER_HEALTH_TIMEOUT parameter to a constant
arteam a9f5636
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine 6eeef0e
Merge remote-tracking branch 'origin/master' into return-200-for-clus…
arteam f481da2
Revert "Mute cluster.health/20_request_timeout/cluster health request…
arteam 6ec9dfb
Fix merge
arteam 05a2eea
Update to 8.1.0
arteam a6a90c5
Update reason
arteam 234aa9e
Merge branch 'master' into return-200-for-cluster-health-8.0
elasticmachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pr: 78968 | ||
summary: HTTP Status code has changed for the Cluster Health API in case of a server timeout | ||
area: CRUD | ||
type: breaking | ||
issues: [] | ||
breaking: | ||
title: HTTP Status code has changed for the Cluster Health API in case of a server timeout | ||
area: API | ||
details: |- | ||
The cluster health API includes options for waiting | ||
for certain health conditions to be satisfied. If the requested conditions are | ||
not satisfied within a timeout then ES will send back a normal response | ||
including the field `"timed_out": true`. In earlier versions it would also use | ||
the HTTP response code `408 Request timeout` if the request timed out, and `200 | ||
OK` otherwise. The `408 Request timeout` response code is not appropriate for | ||
this situation, so from version 8.0.0 ES will use the response code `200 OK` | ||
for both cases. | ||
impact: |- | ||
To detect a server timeout, check the `timed_out` field of the JSON response. | ||
notable: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.