Data node was added retrieving new cluster info – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.9

Briefly, this error occurs when a new data node is added to an existing Elasticsearch cluster and the cluster state information is being updated. This could be due to network issues, configuration errors, or insufficient resources. To resolve this, ensure that the new node has the correct configuration and sufficient resources. Check the network connectivity between the nodes. Also, verify that the Elasticsearch version of the new node is compatible with the existing cluster. Lastly, check the Elasticsearch logs for any additional information about the error.

This guide will help you check for common problems that cause the log ” data node was added; retrieving new cluster info ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: node, cluster.

Log Context

Log “data node was added; retrieving new cluster info” classname is InternalClusterInfoService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            }
        }

        if (this.isMaster && dataNodeAdded && event.state().getNodes().getDataNodes().size() > 1) {
            if (logger.isDebugEnabled()) {
                logger.debug("data node was added; retrieving new cluster info");
            }
            threadPool.executor(executorName()).execute(this::maybeRefresh);
        }

        if (this.isMaster && event.nodesRemoved()) {

 

 [ratemypost]