One of the shards is incompatible with the required minimum version – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.12-8.9

Briefly, this error occurs when one or more shards in your Elasticsearch cluster are running on a version that is lower than the minimum required version. This could be due to an incomplete upgrade or a node running an older version. To resolve this issue, you can upgrade the nodes to the required version, reindex the data from the old indices to new ones compatible with the required version, or remove the incompatible shards if they are not needed. Always ensure to backup your data before performing these operations to prevent data loss.

This guide will help you check for common problems that cause the log ” One of the shards is incompatible with the required minimum version [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: shards, version, search.

Log Context

Log “One of the shards is incompatible with the required minimum version [{}]” class name is AbstractSearchAsyncAction.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 @Override
 public final Transport.Connection getConnection(String clusterAlias; String nodeId) {
 Transport.Connection conn = nodeIdToConnection.apply(clusterAlias; nodeId);
 Version minVersion = request.minCompatibleShardNode();
 if (minVersion != null && conn != null && conn.getVersion().before(minVersion)) {
 throw new VersionMismatchException("One of the shards is incompatible with the required minimum version [{}]"; minVersion);
 }
 return conn;
 }  @Override

 

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?