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

版本: 7-7.15

简要说明,当 Elasticsearch 集群中的 leader 和 follower 节点之间的术语编号存在差异时,会发生此错误。这可能是由于网络问题、节点故障或配置错误导致的。要解决此问题,您可以尝试以下方法:1) 检查并修复任何网络连接问题。2) 确保所有节点运行的是相同版本的 Elasticsearch。3) 检查集群健康状况并重启任何失败的节点。4) 检查并更正 Elasticsearch.yml 文件中的任何错误配置。

日志上下文

日志 “onFollowerCheckRequest: current term is [” 的类名是 Coordinator.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人使用:

synchronized (mutex) {
 ensureTermAtLeast(followerCheckRequest.getSender(); followerCheckRequest.getTerm());  if (getCurrentTerm() != followerCheckRequest.getTerm()) {
 logger.trace("onFollowerCheckRequest: current term is [{}]; rejecting {}"; getCurrentTerm(); followerCheckRequest);
 throw new CoordinationStateRejectedException("onFollowerCheckRequest: current term is ["
 + getCurrentTerm() + "]; rejecting " + followerCheckRequest);
 }  // check if node has accepted a state in this term already. If not; this node has never committed a cluster state in this
 // term and therefore never removed the NO_MASTER_BLOCK for this term. This logic ensures that we quickly turn a node
查看 Markdown
On this page