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

版本: 7.14-8.9

简而言之,当 Elasticsearch 尝试从快照恢复索引时,如果该索引的快照未完全完成,就会出现此错误。这可能是由于快照过程中的中断或磁盘空间不足造成的。要解决此问题,您可以尝试创建新的快照,确保在过程中有足够的磁盘空间且不会发生中断。或者,检查是否有同一索引的其他成功快照可以恢复。

日志上下文 #

日志 “index [” + index + “] wasn’t fully snapshotted – cannot restore” 的类名是 RestoreService.java. 我们从 Elasticsearch 源代码中提取了以下内容,以供那些寻求深入背景的人参考;

// Make sure that index was fully snapshotted
 if (failed(snapshotInfo; index)) {
 if (request.partial()) {
 return true;
 } else {
 throw new SnapshotRestoreException(snapshot; "index [" + index + "] wasn't fully snapshotted - cannot restore");
 }
 } else {
 return false;
 }
 }