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

版本: 7.1-7.13

简而言之,当 Elasticsearch 无法为创建快照而克隆分片时,会出现此错误。这可能是由于磁盘空间不足、网络问题或底层文件系统问题导致的。要解决此问题,您可以尝试释放磁盘空间、检查网络连接或修复文件系统。此外,确保 Elasticsearch 集群处于健康状态,并且分片未损坏。如果分片已损坏,您可能需要从以前的快照中恢复它。

日志上下文 #

日志 “Can’t create clone of [” + shardId + “] for snapshot [” 的类名是 BlobStoreRepository.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

if (sourceFiles != null && existingTargetFiles != null) {
 break;
 }
 }
 if (sourceFiles == null) {
 throw new RepositoryException(metadata.name(); "Can't create clone of [" + shardId + "] for snapshot ["
 + target + "]. The source snapshot [" + source + "] was not found in the shard metadata.");
 }
 if (existingTargetFiles != null) {
 if (existingTargetFiles.isSame(sourceFiles)) {
 return new ShardSnapshotResult(