Could someone clarify how replicas of closed index shards are handled prior to 7.2?
I work with a cluster that's currently running Elasticsearch 6.8.6. I have always thought that closed index shards are replicated. I.e. If the index has one replica while open, then it still has one replica after it's closed.
But https://www.elastic.co/guide/en/elasticsearch/reference/current/release-highlights-7.2.0.html make a big thing of how closed index shards are now replicated. https://github.com/elastic/elasticsearch/issues/33888 makes it sound like closed index shards are not replicated.
When open, all the indices on our cluster have one replica. If I look on the disks of our Elasticsearch nodes for a directories containing shards of a given closed index, I find two copies of each shard. If I open a closed index, it's shards are (usually) all allocated without any copying of shards happening, which could only happen if Elasticsearch found a primary and replica of each shard on disk. (Sometimes, I think only when opening lots of indices at once requiring allocation of say 200-300 shards, some replicas are recreated by copying primaries.)
Is what's changed that Elasticsearch will now recreate shards of closed indices if the node they are on is removed, where as before 7.2 that wouldn't happen? Or something else?