Notifying of new cluster info – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.4-8.9

Briefly, this error occurs when Elasticsearch is updating its internal state about the cluster. It’s not an error but an informational message indicating that the cluster state has changed, possibly due to nodes joining/leaving, index creation/deletion, or changes in shard allocation. To manage this, ensure your cluster is stable with no frequent changes. Monitor your nodes’ health and network stability. If the message is frequent, it might indicate an unstable cluster, which requires investigation. Also, consider adjusting the logging level if this message is causing noise in your logs.

This guide will help you check for common problems that cause the log ” notifying [{}] 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 “notifying [{}] of new cluster info” classname is InternalClusterInfoService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                final ClusterInfo clusterInfo = getClusterInfo();
                boolean anyListeners = false;
                for (final Consumer listener : listeners) {
                    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);
                    }
                }

 

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?