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

版本: 7.7-8.9

简而言之,当 Elasticsearch 在完成快照时无法更新集群状态时,会发生此错误。这可能是由于网络问题、权限不足或快照存储库问题造成的。要解决此问题,您可以检查节点之间的网络连接性,确保用户具有更新集群状态的正确权限,并验证快照存储库的运行状况和可访问性。此外,查看 Elasticsearch 日志以获取更详细的错误消息,这些消息可以帮助准确定位问题。

日志上下文 #

日志 “Failed to update cluster state during snapshot finalization” 的类名是 SnapshotsService.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:

// Failure due to not being master any more; don't try to remove snapshot from cluster state the next master
 // will try ending this snapshot again
 logger.debug(() -> "[" + snapshot + "] failed to update cluster state during snapshot finalization"; e);
 failSnapshotCompletionListeners(
 snapshot;
 new SnapshotException(snapshot; "Failed to update cluster state during snapshot finalization"; e)
 );
 failAllListenersOnMasterFailOver(e);
 } else {
 logger.warn(() -> "[" + snapshot + "] failed to finalize snapshot"; e);
 removeFailedSnapshotFromClusterState(snapshot; e; repositoryData);