Cluster state that is published locally has neither – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7-7.15

Briefly, this error occurs when the Elasticsearch cluster state that is published locally is missing both the metadata and routing table. This could be due to a misconfiguration or a network issue. To resolve this, you can try restarting the Elasticsearch node, checking the cluster settings, or verifying the network connectivity. If the issue persists, you may need to restore from a backup or reindex your data.

This guide will help you check for common problems that cause the log ” cluster state that is published locally has neither ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster, discovery.

Log Context

Log “cluster state that is published locally has neither” class name is ZenDiscovery.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 " committed version [" + newState.version() + "] source [" + clusterChangedEvent.source() + "]");
 if (sentToApplier == false && processedOrFailed.get() == false) {
 assert false : "cluster state published locally neither processed nor failed: " + newState;
 logger.warn("cluster state with version [{}] that is published locally has neither been processed nor failed";
 newState.version());
 publishListener.onFailure(new FailedToCommitClusterStateException("cluster state that is published locally has neither " +
 "been processed nor failed"));
 }
 }
 }

 

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?