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

版本: 7-8.9

简而言之,当节点无法在提交前发布集群状态时,会发生此错误。这可能是由于网络问题、节点故障或节点响应太慢导致的。要解决此问题,可以尝试增加超时设置、确保网络连接稳定,或优化节点性能。如果问题持续存在,建议检查节点的健康状况和日志,查找任何潜在问题。

日志上下文 #

日志 “publication cancelled before committing:” 的类名是 Publication.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:

    assert cancelled == false;
    cancelled = true;
    if (applyCommitRequest.isPresent() == false) {
        logger.debug("cancel: [{}] cancelled before committing (reason: {})"; this; reason);
        // fail all current publications
        final Exception e = new ElasticsearchException("publication cancelled before committing: " + reason);
        publicationTargets.stream().filter(PublicationTarget::isActive).forEach(pt -> pt.setFailed(e));
    }
    onPossibleCompletion();
    }