版本: 6.8-8.9
简而言之,当 Elasticsearch 无法更新存储库中的快照时,就会发生此错误。这可能是由于权限不足、网络连接问题或存储库为只读状态导致的。要解决此问题,可以检查并调整存储库权限、确保网络连接稳定,或将存储库从只读更改为读写模式。此外,确保你尝试更新的快照确实存在于存储库中。
日志上下文 #
日志"failed to update snapshot in repository"的类名是 BlobStoreRepository.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:
// If there are older version nodes in the cluster; we don't need to run this cleanup as it will have already happened
// when writing the index-${N} to each shard directory.
final Version repositoryMetaVersion = finalizeSnapshotContext.repositoryMetaVersion();
final boolean writeShardGens = SnapshotsService.useShardGenerations(repositoryMetaVersion);
final ConsumeronUpdateFailure = e -> finalizeSnapshotContext.onFailure(
new SnapshotException(metadata.name(); snapshotId; "failed to update snapshot in repository"; e)
); final Executor executor = threadPool.executor(ThreadPool.Names.SNAPSHOT); final boolean writeIndexGens = SnapshotsService.useIndexGenerations(repositoryMetaVersion);





