-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] Error invoking _stats with expand_wildcards on closed indices #11180
Comments
Hello @anasalkouz @ankitkala @peternied Can you please assign this bug to me. I would like to work on this. Thanks. |
@ankitkala @anasalkouz @andrross @mch2 @peternied These are my findings so far - Created an index called "sample-index" with sample docs.
Is this still a legit bug? |
Hello @ankitkala @anasalkouz @andrross @mch2 @peternied, Can you please answer the above? |
[Triage - attendees 1 2 3 4 5 6 7] In the case mention where Its conflicting cases such as |
Hi @ankitkala @anasalkouz @andrross @mch2 @peternied |
Apologies for chiming in late here and thanks for taking this @srikanthpadakanti As @reta mentioned on the PR this would be breaking the rest spec. When I cut this I had not considered the default behavior with forbid_closed_indices so giving a better error message here would have helped me and does enough to resolve the issue. |
Describe the bug
The
expand_wildcards
parameter has the following options according to docs:all and closed options are supposed to expand on closed indices.
When either of these options are provided while the cluster contains a closed index, a bad request is returned:
To Reproduce
Steps to reproduce the behavior:
_stats?expand_wildcards=all
or_stats?expand_wildcards=closed
Expected behavior
According to docs this request should succeed. I would assume returning the stats that are able to be fetched from a closed index, maybe not all?
Plugins
None
Screenshots
N/A
Host/Environment (please complete the following information):
Any
Additional context
Easily reproducible with
./gradlew run
on main and 2.x branches, have not tried 1.x.I am also not seeing any exception in stdout.
The text was updated successfully, but these errors were encountered: