Ignoring master because the version is lower than the minimum compatible version – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when there is a version mismatch between the master node and the other nodes in an Elasticsearch cluster. The master node’s version is lower than the minimum compatible version required by the other nodes. To resolve this issue, you can either upgrade the master node to a compatible version or downgrade the other nodes to match the master’s version. However, upgrading is generally recommended to benefit from the latest features and improvements. Always ensure to backup your data before performing any upgrade or downgrade operations.

This guide will help you check for common problems that cause the log ” ignoring master [{}]; because the version [{}] is lower than the minimum compatible version [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: discovery, elect, master and version.

Log Context

Log “ignoring master [{}]; because the version [{}] is lower than the minimum compatible version [{}]” classname is ElectMasterService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

return null;
        }
        DiscoveryNode masterNode = sortedNodes.get(0);
        // Sanity check: maybe we don't end up here; because serialization may have failed.
        if (masterNode.getVersion().before(minMasterVersion)) {
            logger.warn("ignoring master [{}]; because the version [{}] is lower than the minimum compatible version [{}]"; masterNode; masterNode.getVersion(); minMasterVersion);
            return null;
        } else {
            return masterNode;
        }
    }

 

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?