Failed to get node info for disconnecting – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.17

Briefly, this error occurs when Elasticsearch is unable to retrieve information for a node that is disconnecting. This could be due to network issues, the node being unresponsive, or the node shutting down unexpectedly. To resolve this issue, you can try restarting the node, checking the network connection, or inspecting the node’s logs for any unusual activity. If the problem persists, consider reconfiguring your cluster to ensure that it can handle node disconnections gracefully.

This guide will help you check for common problems that cause the log ” failed to get node info for {}; disconnecting… ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: client, node.

Log Context

Log “failed to get node info for {}; disconnecting…” classname is TransportClientNodesService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                    }
                } catch (ConnectTransportException e) {
                    logger.debug(() -> new ParameterizedMessage("failed to connect to node [{}]; ignoring..."; listedNode); e);
                    hostFailureListener.onNodeDisconnected(listedNode; e);
                } catch (Exception e) {
                    logger.info(() -> new ParameterizedMessage("failed to get node info for {}; disconnecting..."; listedNode); e);
                }
            }

            nodes = establishNodeConnections(newNodes);
            filteredNodes = Collections.unmodifiableList(newFilteredNodes);

 

 [ratemypost]