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 :

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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);
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);
                    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]

Opster
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.