Successfully completed ML maintenance task triggerDeleteExpiredDataTask – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.8-8.9

Briefly, this error occurs when Elasticsearch Machine Learning (ML) completes a maintenance task to delete expired data. It’s not an error but an informational message indicating that the task has been successfully executed. If you don’t want to see these messages, you can adjust the logging level in Elasticsearch settings. Alternatively, if you don’t use ML features, you can disable them to prevent such tasks from running.

This guide will help you check for common problems that cause the log ” Successfully completed [ML] maintenance task: triggerDeleteExpiredDataTask ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, task, delete.

Log Context

Log “Successfully completed [ML] maintenance task: triggerDeleteExpiredDataTask” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

    private void triggerDeleteExpiredDataTask(ActionListener finalListener) {
        ActionListener deleteExpiredDataActionListener = ActionListener.wrap(
            deleteExpiredDataResponse -> {
                if (deleteExpiredDataResponse.isDeleted()) {
          "Successfully completed [ML] maintenance task: triggerDeleteExpiredDataTask");
                } else {
          "Halting [ML] maintenance tasks before completion as elapsed time is too great");


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?