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

版本: 7-8.9

简而言之,当尝试在 Elasticsearch 已经处于重新配置过程中时再次进行重新配置,就会发生此错误。这是不允许的,因为它可能导致不一致和错误。要解决此问题,您可以在启动新的重新配置之前等待当前重新配置过程完成,或者可以停止当前的重新配置过程,然后启动新的重新配置。此外,重要的是要确保自动化进程或脚本不会同时尝试重新配置 Elasticsearch。

日志上下文 #

日志"only allow reconfiguration while not already reconfiguring"的类名是 CoordinationState.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:

);
 }  if (electionStrategy.isInvalidReconfiguration(clusterState; getLastAcceptedConfiguration(); getLastCommittedConfiguration())) {
 logger.debug("handleClientValue: only allow reconfiguration while not already reconfiguring");
 throw new CoordinationStateRejectedException("only allow reconfiguration while not already reconfiguring");
 }
 if (joinVotesHaveQuorumFor(clusterState.getLastAcceptedConfiguration()) == false) {
 logger.debug("handleClientValue: only allow reconfiguration if joinVotes have quorum for new config");
 throw new CoordinationStateRejectedException("only allow reconfiguration if joinVotes have quorum for new config");
 }