HI all,
we closed some indices on our Elasticsearch 8.12 cluster but the ILM delete action failed the operations with this exception:
024-02-27T02:50:26,198][ERROR][o.e.x.i.IndexLifecycleRunner] [elk01] policy [fns_delete_template] for index [fns-prod-2023-11-19] failed on step [{"phase":"delete","action":"delete","name":"wait-for-shard-history-leases"}]. Moving to ERROR step
Yes, ILM can delete closed indices, but the error you're seeing indicates a problem with waiting for shard history leases to expire before deletion. To resolve this, check your cluster health, ensure no settings are blocking deletion, review your ILM policy, and consider manually moving the ILM step forward if it's stuck in an error state.
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.