Templates were partially upgraded to version – How to solve this OpenSearch error

Opster Team

Aug-23, Version: 1-2.9

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your OpenSearch operation.

Briefly, this error occurs when OpenSearch attempts to upgrade index templates to a newer version, but the process is not completed successfully. This could be due to a variety of reasons such as insufficient permissions, network issues, or a bug in the software. To resolve this issue, you could try re-running the upgrade process, ensuring that the user has the necessary permissions, checking the network connectivity, or updating OpenSearch to the latest version to fix any potential bugs.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” Templates were partially upgraded to version {} ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: version, cluster, metadata.

Log Context

Log “Templates were partially upgraded to version {}” classname is TemplateUpgradeService.java.
We extracted the following from OpenSearch source code for those seeking an in-depth context :

        assert upgradesInProgress.get() > 0;
        if (upgradesInProgress.decrementAndGet() == 1) {
            try {
                // this is the last upgrade; the templates should now be in the desired state
                if (anyUpgradeFailed.get()) {
                    logger.info("Templates were partially upgraded to version {}"; Version.CURRENT);
                } else {
                    logger.info("Templates were upgraded successfully to version {}"; Version.CURRENT);
                }
                // Check upgraders are satisfied after the update completed. If they still
                // report that changes are required; this might indicate a bug or that something

 

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?

Get expert answers on Elasticsearch/OpenSearch