Only allow reconfiguration if joinVotes have quorum for new config – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7-8.9

Briefly, this error occurs when an Elasticsearch cluster is being reconfigured and the new configuration does not have a quorum of join votes. This is a safety measure to prevent data loss or split brain scenarios. To resolve this issue, ensure that a majority of nodes are available and can communicate with each other during the reconfiguration. If some nodes are down, bring them back online. If network issues are preventing communication, resolve these issues. Also, check the cluster settings and adjust them if necessary to ensure a quorum can be reached.

This guide will help you check for common problems that cause the log ” only allow reconfiguration if joinVotes have quorum for new config ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: join, cluster.

Log Context

Log “only allow reconfiguration if joinVotes have quorum for new config” class name is CoordinationState.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 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");
 }  assert clusterState.getLastCommittedConfiguration().equals(getLastCommittedConfiguration())
 : "last committed configuration should not change";

 

 [ratemypost]