Skipping policy execution of step for index with policy because ILM is stopping – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.15

Briefly, this error occurs when Elasticsearch’s Index Lifecycle Management (ILM) is in the process of stopping, and therefore, it skips the execution of the policy step for a particular index. This could be due to a manual stop command or an internal issue. To resolve this, you can restart the ILM, ensure there’s enough disk space, and check for any internal issues that might be causing the ILM to stop. Also, verify the health of your Elasticsearch cluster and ensure it’s not under heavy load, which could affect the ILM operation.

This guide will help you check for common problems that cause the log ” skipping policy execution of step [{}] for index [{}] with policy [{}] because ILM is stopping ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index, plugin.

Log Context

Log “skipping policy execution of step [{}] for index [{}] with policy [{}] because ILM is stopping” classname is IndexLifecycleService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                                lifecycleRunner.runPeriodicStep(policyName; clusterState.metadata(); idxMeta);
                            }
                            // ILM is trying to stop; but this index is in a Shrink step (or other dangerous step) so we can't stop
                            safeToStop = false;
                        } else {
                            logger.info("skipping policy execution of step [{}] for index [{}] with policy [{}] because ILM is stopping";
                                stepKey == null ? "n/a" : stepKey.getName(); idxMeta.getIndex().getName(); policyName);
                        }
                    } else {
                        if (fromClusterStateChange) {
                            lifecycleRunner.runPolicyAfterStateChange(policyName; idxMeta);

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?