Rejecting join since this node has not received its initial configuration yet – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7-8.9

Briefly, this error occurs when a node in Elasticsearch tries to join a cluster before it has received its initial configuration. This could be due to network issues, slow startup, or incorrect configuration. To resolve this, ensure that the node’s configuration is correct and it can communicate with the cluster. If the problem persists, try restarting the node or the entire cluster. Also, check for any network issues that might be preventing the node from receiving its configuration.

This guide will help you check for common problems that cause the log ” rejecting join since this node has not received its initial configuration yet ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: join, node, cluster.

Log Context

Log “rejecting join since this node has not received its initial configuration yet” class name is CoordinationState.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 // 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);

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?