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

版本: 7-8.9

简而言之,当Elasticsearch尝试在接收前一个值之前发布新值时,会出现此错误,这是不允许的。这可能是由于同步问题或系统中的缺陷导致的。要解决此问题,你可以尝试重启Elasticsearch节点,确保系统已更新到最新版本,或检查代码是否存在任何同步问题。如果问题仍然存在,可以考虑向Elasticsearch社区或支持团队寻求帮助。

日志上下文 #


日志 “cannot start publishing next value before accepting previous one” 的类名是 CoordinationState.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入了解的人参考:

logger.debug("handleClientValue: ignored request as election not won");
 throw new CoordinationStateRejectedException("election not won");
 }
 if (lastPublishedVersion != getLastAcceptedVersion()) {
 logger.debug("handleClientValue: cannot start publishing next value before accepting previous one");
 throw new CoordinationStateRejectedException("cannot start publishing next value before accepting previous one");
 }
 if (clusterState.term() != getCurrentTerm()) {
 logger.debug(
 "handleClientValue: ignored request due to term mismatch "
 + "(expected: [term {} version >{}]; actual: [term {} version {}])";