Commit 9aa340c
authored
Fix indices shown in _cat/indices (#43286)
After two recent changes (#38824 and #33888), the _cat/indices API
no longer report information for active recovering indices and
non-replicated closed indices. It also misreport replicated closed
indices that are potentially not authorized for the user.
This commit changes how the cat action works by first using the
Get Settings API in order to resolve authorized indices. It then uses
the Cluster State, Cluster Health and Indices Stats APIs to retrieve
information about the indices.
Closes #399331 parent a9b9441 commit 9aa340c
File tree
5 files changed
+494
-249
lines changed- server/src
- main/java/org/elasticsearch
- action
- rest/action/cat
- test/java/org/elasticsearch
- action/admin/indices/rollover
- rest/action/cat
- x-pack/plugin/src/test/resources/rest-api-spec/test/security/authz
5 files changed
+494
-249
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | | - | |
| 664 | + | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| |||
0 commit comments