Cluster state with version that is published locally has neither been processed nor failed – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.15

Briefly, this error occurs when the Elasticsearch cluster state version that is published locally has not been processed or failed. This could be due to network issues, node failures, or heavy load causing delays in processing. To resolve this issue, you can try the following: 1) Check the network connectivity between the nodes. 2) Monitor the load on the Elasticsearch cluster and scale it up if necessary. 3) Check the health of the nodes and restart any that are failing. 4) Ensure that the cluster state is being updated correctly.

This guide will help you check for common problems that cause the log ” cluster state with version [{}] that is published locally has neither been processed nor failed ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster, discovery, version.

Log Context

Log “cluster state with version [{}] that is published locally has neither been processed nor failed” classname is ZenDiscovery.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            boolean sentToApplier = processNextCommittedClusterState("master " + newState.nodes().getMasterNode() +
                " 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?