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

Opster Team

Aug-23, Version: 7-7

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 for a particular index. This could be due to a manual stop command or an internal issue. To resolve this, you can manually start the ILM again using the Start ILM API. If the problem persists, check the Elasticsearch logs for any underlying issues that might be causing the ILM to stop. Also, ensure that your Elasticsearch cluster has sufficient resources to handle ILM operations.

This guide will help you check for common problems that cause the log ” skipping policy execution 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 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 :

                                idxMeta.getIndex().getName(); policyName; stepKey.getAction());
                            lifecycleRunner.maybeRunAsyncAction(clusterState; idxMeta; policyName; stepKey);
                            // ILM is trying to stop; but this index is in a Shrink action (or other dangerous action) so we can't stop
                            safeToStop = false;
                        } else {
                            logger.info("skipping policy execution for index [{}] with policy [{}] because ILM is stopping";
                                idxMeta.getIndex().getName(); policyName);
                        }
                    } else {
                        lifecycleRunner.maybeRunAsyncAction(clusterState; idxMeta; policyName; stepKey);
                    }

 

 [ratemypost]