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

版本: 6.8-8.9

简而言之,当 Elasticsearch 由于磁盘空间不足、快照与当前 Elasticsearch 版本不兼容或快照文件损坏等原因无法恢复快照时,会发生此错误。要解决此问题,请确保您有足够的磁盘空间,并且快照版本与您的 Elasticsearch 版本兼容。如果快照文件已损坏,请尝试从不同的快照恢复。如果问题仍然存在,请考虑对数据进行重新索引。

日志上下文 #

日志 “failed to restore snapshot [” + snapshotId + “]” 的类名是 BlobStoreRepository.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

RecoveryState recoveryState;
 ActionListenerlistener
 ) {
 final ShardId shardId = store.shardId();
 final ActionListenerrestoreListener = listener.delegateResponse(
 (l; e) -> l.onFailure(new IndexShardRestoreFailedException(shardId; "failed to restore snapshot [" + snapshotId + "]"; e))
 );
 final Executor executor = threadPool.executor(ThreadPool.Names.SNAPSHOT);
 final BlobContainer container = shardContainer(indexId; snapshotShardId);
 synchronized (ongoingRestores) {
 if (store.isClosing()) {