Failed to notify listener of new cluster info – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.3-8.9

Briefly, this error occurs when Elasticsearch is unable to update the cluster state to the nodes in the cluster. This could be due to network issues, node failures, or a heavy load on the cluster. To resolve this issue, you can try the following: 1) Check the network connectivity between the nodes. 2) Ensure that the nodes are not overloaded and have sufficient resources. 3) Check the health of the nodes and replace any failed nodes. 4) Increase the cluster state update timeout setting if the updates are taking longer than expected.

This guide will help you check for common problems that cause the log ” failed to notify [” + listener + “] of new cluster info ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster.

Log Context

Log “failed to notify [” + listener + “] of new cluster info” classname is InternalClusterInfoService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                    anyListeners = true;
                    try {
                        logger.trace("notifying [{}] of new cluster info"; listener);
                        listener.accept(clusterInfo);
                    } catch (Exception e) {
                        logger.info(() -> "failed to notify [" + listener + "] of new cluster info"; e);
                    }
                }
                assert anyListeners : "expected to notify at least one listener";

                for (final ActionListener listener : thisRefreshListeners) {

 

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?