Master marked shard as started but shard has not been created mark shard as failed – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.3-1.3

Briefly, this error occurs when Elasticsearch’s master node acknowledges a shard as started, but the shard hasn’t been created yet. This could be due to network issues, node failures, or resource constraints. To resolve this, you can try the following: 1) Check the cluster’s health and ensure all nodes are functioning properly. 2) Verify network connectivity between nodes. 3) Ensure there are sufficient resources (CPU, memory, disk space) for Elasticsearch to operate. 4) If the issue persists, consider restarting the Elasticsearch cluster, but be aware this may cause downtime.

This guide will help you check for common problems that cause the log ” [{}][{}] master [{}] marked shard as started; but shard has not been created; mark shard as failed ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster, indices, master and shard.

Log Context

Log “[{}][{}] master [{}] marked shard as started; but shard has not been created; mark shard as failed” classname is IndicesClusterStateService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                                 nodes.masterNode()
                        );
                    }
                } else {
                    // the master thinks we are started; but we don't have this shard at all; mark it as failed
                    logger.warn("[{}][{}] master [{}] marked shard as started; but shard has not been created; mark shard as failed"; shardRouting.index(); shardId; nodes.masterNode());
                    failedShards.put(shardRouting.shardId(); new FailedShard(shardRouting.version()));
                    if (nodes.masterNode() != null) {
                        shardStateAction.shardFailed(shardRouting; indexMetaData.getUUID();
                                "master " + nodes.masterNode() + " marked shard as started; but shard has not been created; mark shard as failed";
                                nodes.masterNode()




 

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?