No upgrade needed – already upgraded – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 5-5

Briefly, this error occurs when you attempt to upgrade an Elasticsearch cluster that has already been upgraded to the desired version. This means that the current version of your Elasticsearch cluster is the same as the version you’re trying to upgrade to. To resolve this issue, you can either check your current Elasticsearch version to confirm if an upgrade is necessary or proceed with other operations if you’re already on the desired version. If you still want to upgrade, ensure you’re using the correct newer version for the upgrade process.

This guide will help you check for common problems that cause the log ” [{}] no upgrade needed – already upgraded ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index and upgrade.

Log Context

Log “[{}] no upgrade needed – already upgraded” classname is IndexFolderUpgrader.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                         // in a node path; which needs upgrading; it is a no-op for subsequent node paths
                        if (Files.exists(customLocationSource) // might not exist if no data was written for this index
                            && Files.exists(customLocationTarget) == false) {
                            upgrade(index; customLocationSource; customLocationTarget);
                        } else {
                            logger.info("[{}] no upgrade needed - already upgraded"; customLocationTarget);
                        }
                    }
                    upgrade(index; indexFolderPath; indexFolderPath.resolveSibling(index.getUUID()));
                } else {
                    logger.debug("[{}] no upgrade needed - already upgraded"; indexFolderPath);




 

 [ratemypost]