Done waiting for tasks to be out of AWAITING UPGRADE – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8-8.9

Briefly, this error occurs when Elasticsearch is in the process of upgrading and it has finished waiting for tasks to move out of the ‘AWAITING UPGRADE’ state. This could be due to a slow system, a large number of tasks, or a problem with the upgrade process. To resolve this issue, you can try restarting Elasticsearch, increasing system resources, or checking for any issues with the upgrade process such as errors in the logs or issues with the new version. If the problem persists, consider rolling back to the previous version and retrying the upgrade.

This guide will help you check for common problems that cause the log ” Done waiting for tasks to be out of AWAITING_UPGRADE ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “Done waiting for tasks to be out of AWAITING_UPGRADE” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                    persistentTasksCustomMetadata -> persistentTasksCustomMetadata.tasks()
                        .noneMatch(t -> ML_TASK_NAMES.contains(t.getTaskName()) && t.getAssignment().equals(AWAITING_UPGRADE));
                    ActionListener.wrap(r -> {
              "Done waiting for tasks to be out of AWAITING_UPGRADE");
                    }; wrappedListener::onFailure)
        }; wrappedListener::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?