-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Get hidden indices stats in GET _cat/shards
#86601
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
Get hidden indices stats in GET _cat/shards
#86601
Conversation
Passes a permissive `IndicesOptions` to the indices stats request used within `GET _cat/shards` so that it retrieves stats for hidden indices by default. Also passes the same `IndicesOptions` to the cluster state request so that the two requests get consistent sets of indices. Also parallelises the two requests since there's no dependency between them. Closes elastic#84656 Also relates elastic#32238 since the more permissive `IndicesOptions` used here permits closed indices, which means `GET _cat/shards` will not throw an exception in security-enabled clusters containing closed indices behind aliases.
Pinging @elastic/es-data-management (Team:Data Management) |
Hi @DaveCTurner, I've created a changelog YAML for you. |
I'm unclear on the precise BwC consequences of this change. I hope it's ok given that |
Pinging @elastic/clients-team (Team:Clients) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from an API perspective
Thanks Seth, I'm dismissing this just so it's not marked as ready-to-merge in my list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I consider this more on the bugfix side and I don't think we should be concerned about the behavior change.
Thanks both! |
Passes a permissive
IndicesOptions
to the indices stats request usedwithin
GET _cat/shards
so that it retrieves stats for hidden indicesby default.
Also passes the same
IndicesOptions
to the cluster state request sothat the two requests get consistent sets of indices.
Also parallelises the two requests since there's no dependency between
them.
Closes #84656
Also relates #32238 since the more permissive
IndicesOptions
used herepermits closed indices, which means
GET _cat/shards
will not throw anexception in security-enabled clusters containing closed indices behind
aliases.