Open gargharsh3134 opened 1 week ago
:x: Gradle check result for c62e5f27793b7ae03ce171b3b51c6553cb5004ab: 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?
:x: Gradle check result for 691803cb2479620a5886ac0e32731ed8bdd5057b: 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?
:white_check_mark: Gradle check result for 4663f2b8cd08f3b79508c7d81a9a77bab890f6ca: SUCCESS
Attention: Patch coverage is 50.00000%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 72.13%. Comparing base (
ac44300
) to head (06a1118
).
Files with missing lines | Patch % | Lines |
---|---|---|
...admin/cluster/shards/TransportCatShardsAction.java | 0.00% | 2 Missing :warning: |
.../org/opensearch/action/support/IndicesOptions.java | 75.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
:white_check_mark: Gradle check result for 06a11183b964d874554c6d657db9f509ed8eb6a3: SUCCESS
Description
_list/shards API throws index_closed_exception whenever the cluster has closed indices. This change is to resolve and ignore the closed indices from getting explicitly passed to IndicesStatsAction.
Functional Testing
On a local cluster with 2 indices:
open-test-index
-> Open index with 1P and 1R.new-test-idx
-> closed index with 1P and 2 R.Existing
_cat/shards
behaviour:Unfiltered default query outputs closed shards without stats.
Explicitly querying for a concrete closed index, throws error.
Wildcards only match open indices and response is empty if only closed indices match the expression
Fixed
_list/shards
behaviour:Unfiltered default query will output closed shards without stats.
Explicitly querying for a concrete closed index, will output closed shards without stats instead of throwing error.
Wildcards continue to match only open indices and response is empty if only closed indices match the expression
Related Issues
Resolves https://github.com/opensearch-project/OpenSearch/issues/16626
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.