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 TransportSetUpgradeModeAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                    persistentTasksCustomMetadata -> persistentTasksCustomMetadata.tasks()
                        .stream()
                        .noneMatch(t -> ML_TASK_NAMES.contains(t.getTaskName()) && t.getAssignment().equals(AWAITING_UPGRADE));
                    request.timeout();
                    ActionListener.wrap(r -> {
                        logger.info("Done waiting for tasks to be out of AWAITING_UPGRADE");
                        wrappedListener.onResponse(AcknowledgedResponse.TRUE);
                    }; wrappedListener::onFailure)
                );
            }
        }; wrappedListener::onFailure);

 

 [ratemypost]