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

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.

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.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

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?