版本: 7.9-8.9
简而言之,当 Elasticsearch 在仓库操作期间无法更新集群状态时,就会发生此错误。这可能是由于网络问题、权限不足或仓库本身存在问题导致的。要解决此问题,您可以尝试以下方法:1) 检查节点之间的网络连接;2) 验证仓库的权限;3) 检查仓库的健康状况并修复任何问题;4) 如果问题仍然存在,考虑删除并重新创建仓库。
日志上下文 #
日志 “_all”; “Failed to update cluster state during repository operation” 的类名是 SnapshotsService.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:
if (ExceptionsHelper.unwrap(e; NotMasterException.class; FailedToCommitClusterStateException.class) != null) {
repositoryOperations.clear();
for (Snapshot snapshot : Set.copyOf(snapshotCompletionListeners.keySet())) {
failSnapshotCompletionListeners(snapshot; new SnapshotException(snapshot; "no longer master"));
}
final Exception wrapped = new RepositoryException("_all"; "Failed to update cluster state during repository operation"; e);
for (Iterator>> iterator = snapshotDeletionListeners.values().iterator(); iterator.hasNext();) {
final List> listeners = iterator.next();
iterator.remove();
failListenersIgnoringException(listeners; wrapped);
}





