There is a warning in Elasticsearch 6.8 version document about Close index api which states
To reduce the risk of data loss, avoid keeping closed indices in your cluster for long periods of time. When a node leaves your cluster, Elasticsearch does not rebuild the lost copies of the shards in any closed indices. As you replace the nodes in your cluster over time you will gradually lose the shard data for any closed indices
While this warning is not visible in 7.x version of Close Index API document.
Can you please let us know if the above issue of keeping closed indices for long time is solved in 7.x versions of Elasticsearch ?
So this means, there won't be any risk of data loss if a closed index is kept for a long time and a node leaves the cluster?
One more add on question to this, the number of shard copies of closed indices that are safely kept are same as the number of replicas configured for the index ?
The data of opened/closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times.
According to this, even the shards of closed indices are also replicated/copied. So wanted to know if the number of replica/copies of these closed indices remains same as index.number_of_replicas settings configured ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.