Cluster state update after successful shard clone failed – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.1-8.9

Briefly, this error occurs when Elasticsearch attempts to update the cluster state after successfully cloning a shard, but the update fails. This could be due to network issues, insufficient resources, or a problem with the cluster state. To resolve this issue, you can try the following: 1) Check and improve your network connectivity, 2) Ensure your system has enough resources (CPU, memory, disk space), 3) Check the health of your cluster and fix any issues, 4) Retry the operation after some time, and 5) If the problem persists, consider restarting your Elasticsearch cluster.

This guide will help you check for common problems that cause the log ” Cluster state update after successful shard clone [{}] failed ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster, shard.

Log Context

Log “Cluster state update after successful shard clone [{}] failed” classname is SnapshotsService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                                    repoShardId;
                                    sourceSnapshot;
                                    targetSnapshot
                                );
                                e -> {
                                    logger.warn("Cluster state update after successful shard clone [{}] failed"; repoShardId);
                                    failAllListenersOnMasterFailOver(e);
                                }
                            );
                            () -> currentlyCloning.remove(repoShardId)
                        )

 

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?