📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 7.12-8.9

简而言之,当 Elasticsearch 集群中的一个或多个分片运行的版本低于所需最低版本时,会出现此错误。这可能是由于升级不完整或节点运行了较旧的版本导致的。要解决此问题,你可以将节点升级到所需版本,将旧索引中的数据重新索引到与所需版本兼容的新索引中,或者在不需要的情况下移除不兼容的分片。在执行这些操作之前,请务必备份你的数据以防止数据丢失。

日志上下文 #

日志 “One of the shards is incompatible with the required minimum version [{}]” 的类名是 AbstractSearchAsyncAction.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人使用:

@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