Inconsistent behavior of index stats API for closed indices vs closed indices with an alias matching the index pattern: index_closed_exception
#100661
Labels
index_closed_exception
#100661
Elasticsearch Version
8.8.2
Installed Plugins
No response
Java Version
bundled
OS Version
Elastic Cloud
Problem Description
The index stats API returns an
index_closed_exception
if a closed index is behind an alias matching the wildcard index pattern, but returns without an exception if the closed index matches the wildcard index pattern but is not behind an alias matching the pattern.Steps to Reproduce
When calling the Indices Stats API against a single, closed index:
the final call returns an
index_closed_exception
.If we create a new index, then call
_stats
for those two indices, the API returns without an error:However, if we now create an alias for that first index:
Then this call:
will return an
index_closed_exception
.Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: