版本: 7-8.9
简而言之,当 Elasticsearch 中的节点在收到其初始配置之前尝试加入集群时,会发生此错误。这可能是由于网络问题、启动缓慢或配置错误导致的。要解决此问题,请确保节点的配置正确,并且能够与集群通信。如果问题仍然存在,请尝试重启节点或整个集群。另外,检查可能导致节点无法接收其配置的任何网络问题。
日志上下文 #
日志 “rejecting join since this node has not received its initial configuration yet” 的类名是 CoordinationState.java. 我们从 Elasticsearch 源代码中提取了以下内容,以便那些寻求深入上下文的人参考:
// We do not check for an election won on setting the initial configuration; so it would be possible to end up in a state where
// we have enough join votes to have won the election immediately on setting the initial configuration. It'd be quite
// complicated to restore all the appropriate invariants when setting the initial configuration (it's not just electionWon)
// so instead we just reject join votes received prior to receiving the initial configuration.
logger.debug("handleJoin: rejecting join since this node has not received its initial configuration yet");
throw new CoordinationStateRejectedException("rejecting join since this node has not received its initial configuration yet");
} boolean added = joinVotes.addJoinVote(join);
boolean prevElectionWon = electionWon;
electionWon = isElectionQuorum(joinVotes);





