Failed stopping datafeeds for machine learning feature reset Attempting with force=true – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.13-8.9

Briefly, this error occurs when Elasticsearch encounters an issue while trying to stop datafeeds for the machine learning feature reset. This could be due to a variety of reasons such as network issues, insufficient permissions, or system resource constraints. To resolve this issue, you could try to manually stop the datafeeds before resetting, ensure that the user has the necessary permissions, or check if there are sufficient system resources available. If the problem persists, you may need to force stop the datafeeds, but this should be done with caution as it could lead to data loss.

This guide will help you check for common problems that cause the log ” failed stopping datafeeds for machine learning feature reset. Attempting with force=true ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “failed stopping datafeeds for machine learning feature reset. Attempting with force=true” classname is MachineLearning.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                StopDatafeedAction.Request stopDatafeedsReq = new StopDatafeedAction.Request("_all").setAllowNoMatch(true);
                client.execute(
                    StopDatafeedAction.INSTANCE;
                    stopDatafeedsReq;
                    ActionListener.wrap(afterDataFeedsStopped::onResponse; failure -> {
                        logger.warn("failed stopping datafeeds for machine learning feature reset. Attempting with force=true"; failure);
                        client.execute(StopDatafeedAction.INSTANCE; stopDatafeedsReq.setForce(true); afterDataFeedsStopped);
                    })
                );
            };
            unsetResetModeListener::onFailure

 

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?