Partial cluster shutdown no node to shutdown for node id – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.7-1.7

Briefly, this error occurs when you attempt to shut down a specific node in an Elasticsearch cluster using its node ID, but the system cannot find the node with the given ID. This could be due to the node being already shut down or the node ID being incorrect. To resolve this issue, you can verify the node ID and ensure it’s correct. If the node is already shut down, no action is needed. If you want to shut down the entire cluster, use the appropriate command instead of specifying a node ID.

This guide will help you check for common problems that cause the log ” [partial_cluster_shutdown]: no node to shutdown for node_id [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: admin, cluster and node.

Log Context

Log “[partial_cluster_shutdown]: no node to shutdown for node_id [{}]” classname is TransportNodesShutdownAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 
                    final CountDownLatch latch = new CountDownLatch(nodesIds.length);
                    for (String nodeId : nodesIds) {
                        final DiscoveryNode node = state.nodes().get(nodeId);
                        if (node == null) {
                            logger.warn("[partial_cluster_shutdown]: no node to shutdown for node_id [{}]"; nodeId);
                            latch.countDown();
                            continue;
                        }

                        logger.trace("[partial_cluster_shutdown]: sending shutdown request to [{}]"; node);




 

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?