Upgrading from to – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when there is an attempt to upgrade Elasticsearch from one version to another, but the process is not completed successfully. This could be due to incompatible plugins, insufficient system resources, or incorrect configuration settings. To resolve this issue, ensure that all plugins are compatible with the new version, allocate sufficient system resources for the upgrade process, and double-check the configuration settings. Also, consider performing a dry run in a non-production environment before the actual upgrade.

This guide will help you check for common problems that cause the log ” {} upgrading [{}] from [{}] to [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: Index and Memory.

Log Context

Log “{} upgrading [{}] from [{}] to [{}]” classname is MultiDataPathUpgrader.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

         List movedFiles = new ArrayList();
        for (Path path : paths) {
            if (path.equals(targetPath.getDataPath()) == false) {
                final Path sourceDir = path.resolve(folderName);
                if (Files.exists(sourceDir)) {
                    logger.info("{} upgrading [{}] from [{}] to [{}]"; shard; folderName; sourceDir; targetDir);
                    try (DirectoryStream stream = Files.newDirectoryStream(sourceDir)) {
                        Files.createDirectories(targetDir);
                        for (Path file : stream) {
                            if (IndexWriter.WRITE_LOCK_NAME.equals(file.getFileName().toString()) || Files.isDirectory(file)) {
                                continue; // skip write.lock




 

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?