Shards still started for closed indexes

Elasticsearch 7.3.2 OSS.
When I close some indexes (POST pattern-*/_close) shards still displayed as started in GET _cat/shards.
I made sure that the indexes are really closed (GET _cat/indices/pattern-*?h=s,i)
I expected that the cat API should not show shards of closed indexes and should not take them into account when calculating the number of shards.
What is wrong?

That sounds normal to me. The behaviour in this area changed in 7.2.0 since closed indices are now properly replicated. Although they're STARTED they still behave like normal closed indices, taking minimal resources and not supporting searches and so on.

I saw that for closed indexes, the cat API returns the parameter flush.total=null. That's enough for me :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.