Return 404 for missing indices in cluster health API instead of RED w…#19201
Return 404 for missing indices in cluster health API instead of RED w…#19201ogprakash wants to merge 1 commit into
Conversation
|
❌ Gradle check result for 54fc3a9: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
54fc3a9 to
7f3bbfd
Compare
|
❌ Gradle check result for 7f3bbfd: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 1aa79bc: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
1aa79bc to
e99d0eb
Compare
|
❌ Gradle check result for e99d0eb: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
e99d0eb to
942fd81
Compare
|
❌ Gradle check result for 942fd81: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Prakash Bhardwaj <bhardwajprakash653@gmail.com>
942fd81 to
637e990
Compare
|
❌ Gradle check result for 637e990: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
This PR is stalled because it has been open for 30 days with no activity. |
Description
This PR Changes the behaviour of the cluster health API when a non-existing-index is requested.
Previously, the API would wait until timeout and returns RED status of cluster
With this change, the API now immediately throws
IndexNotFoundException, which maps to HTTP 404.Related Issues
Resolves #19022
Check List
ClusterHealthITto expectIndexNotFoundExceptioninstead ofREDfor missing indices.ClusterStateHealthTeststo validate immediate 404 behavior.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.