Skipping scheduled ML maintenance tasks because machine learning feature reset is in progress – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.8-8.9

Briefly, this error occurs when Elasticsearch’s Machine Learning (ML) feature reset is in progress, causing the system to skip scheduled ML maintenance tasks. This is not necessarily an error, but an informational message indicating that a reset operation is ongoing. To resolve this, you can wait for the reset operation to complete, then the scheduled tasks will resume. If the reset operation is stuck, you may need to restart your Elasticsearch cluster. If the issue persists, consider checking your cluster’s health and reviewing the ML job configurations.

This guide will help you check for common problems that cause the log ” skipping scheduled [ML] maintenance tasks because machine learning feature reset is in progress ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “skipping scheduled [ML] maintenance tasks because machine learning feature reset is in progress” classname is MlDailyMaintenanceService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            if (MlMetadata.getMlMetadata(clusterService.state()).isUpgradeMode()) {
                logger.warn("skipping scheduled [ML] maintenance tasks because upgrade mode is enabled");
                return;
            }
            if (MlMetadata.getMlMetadata(clusterService.state()).isResetMode()) {
                logger.warn("skipping scheduled [ML] maintenance tasks because machine learning feature reset is in progress");
                return;
            }
            logger.info("triggering scheduled [ML] maintenance tasks");

            if (isAnomalyDetectionEnabled) {

 

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?