Templates were upgraded successfully 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 successfully upgrades its templates to a newer version. This is not an error message, but an informational message indicating that the upgrade process has been completed successfully. If you’re seeing this message frequently and it’s causing concern, you may want to check your OpenSearch upgrade settings or schedule to ensure it’s not running more frequently than necessary. You can also adjust your logging settings to filter out these informational messages if they’re not needed.

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 upgraded successfully 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 upgraded successfully to version {}” classname is TemplateUpgradeService.java.
We extracted the following from OpenSearch source code for those seeking an in-depth context :

            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
                // else tinkering with the templates during the upgrade.
                final Map upgradedTemplates = clusterService.state().getMetadata().getTemplates();

 

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