Elasticsearch ILM failed delete closed indices

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

Can the ILM deletes the closed indices?

Thanks,
Marcello

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.

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