版本: 8.9-8.9
简要来说,当 Elasticsearch 由于网络问题、负载过重或节点故障等原因无法发布集群状态更新时,就会出现此错误。要解决此问题,您可以检查节点之间的网络连接,确保集群未过载,并验证所有节点的健康状况。如果某个特定节点持续引起问题,请考虑替换或对其进行故障排除。此外,确保您的 Elasticsearch 版本是最新的,因为这可能是已在较新版本中修复的错误。
日志上下文 #
日志 “publishing failed during context creation” 类名是 Coordinator.java。 我们从 Elasticsearch 源代码中提取了以下内容,为那些寻求深入上下文的人提供参考:
publicationContextConstructionStartMillis = transportService.getThreadPool().rawRelativeTimeInMillis();
publicationContext = publicationHandler.newPublicationContext(clusterStatePublicationEvent);
} catch (Exception e) {
logger.debug(() -> "[" + clusterStatePublicationEvent.getSummary() + "] publishing failed during context creation"; e);
becomeCandidate("publication context creation");
throw new FailedToCommitClusterStateException("publishing failed during context creation"; e);
} try (Releasable ignored = publicationContext::decRef) {
try {
clusterStatePublicationEvent.setPublicationContextConstructionElapsedMillis(





