版本: 6.8-8.9
简而言之,当 Elasticsearch 中的分片尚未完成其恢复过程时,就会出现此错误。这可能是由于多种原因导致的,例如网络问题、磁盘空间问题或繁重的索引负载。要解决此问题,您可以尝试以下方法:1) 检查集群健康状况,确保所有节点都已连接并正常工作。2) 验证是否有足够的可用磁盘空间。3) 如果索引负载过高,请降低索引负载。4) 如果问题仍然存在,考虑增加分片恢复的超时值。
日志上下文 #
日志 “shard didn’t fully recover yet” 的类名是 SnapshotShardsService.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
} final IndexShardState indexShardState = indexShard.state();
if (indexShardState == IndexShardState.CREATED || indexShardState == IndexShardState.RECOVERING) {
// shard has just been created; or still recovering
throw new IndexShardSnapshotFailedException(shardId; "shard didn't fully recover yet");
} final Repository repository = repositoriesService.repository(snapshot.getRepository());
SnapshotIndexCommit snapshotIndexCommit = null;
try {





