Templates were upgraded successfully to version – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch 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. No action is needed as this is part of the normal operation of Elasticsearch. However, if you encounter any issues after this upgrade, you should check your application’s compatibility with the new version of Elasticsearch templates.

In addition we recommend you run the Elasticsearch Template Optimizer to fix problems in your data modeling.

It will analyze your templates to detect issues and improve search performance, reduce indexing bottlenecks and optimize storage utilization. The Template Optimizer is free and requires no installation.

Log Context

Log “Templates were upgraded successfully to version {}” classname is TemplateUpgradeService.java.
We extracted the following from Elasticsearch 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?