Received cluster state from with a different cluster uuid than local cluster uuid rejecting – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7-7.15

Briefly, this error occurs when there is a mismatch between the cluster UUIDs of the local and remote Elasticsearch clusters during a cluster state update. This could be due to a node rejoining a cluster after a full cluster restart or a split-brain scenario. To resolve this, ensure all nodes have the same cluster UUID by restarting them. If the issue persists, you may need to wipe the data directory of the problematic node and let it rejoin the cluster, but this should be a last resort as it can lead to data loss.

This guide will help you check for common problems that cause the log ” received cluster state from {} with a different cluster uuid {} than local cluster uuid {}; rejecting ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster.

Log Context

Log “received cluster state from {} with a different cluster uuid {} than local cluster uuid {}; rejecting” classname is Coordinator.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            final ClusterState localState = coordinationState.get().getLastAcceptedState();

            if (localState.metadata().clusterUUIDCommitted() &&
                localState.metadata().clusterUUID().equals(publishRequest.getAcceptedState().metadata().clusterUUID()) == false) {
                logger.warn("received cluster state from {} with a different cluster uuid {} than local cluster uuid {}; rejecting";
                    sourceNode; publishRequest.getAcceptedState().metadata().clusterUUID(); localState.metadata().clusterUUID());
                throw new CoordinationStateRejectedException("received cluster state from " + sourceNode +
                    " with a different cluster uuid " + publishRequest.getAcceptedState().metadata().clusterUUID() +
                    " than local cluster uuid " + localState.metadata().clusterUUID() + "; rejecting");
            }

 

 [ratemypost]