Can t send shard failed for no master known – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when Elasticsearch cannot find a master node in the cluster. This could be due to network issues, configuration errors, or the master node being down. To resolve this issue, you can check the network connectivity between nodes, ensure that the master node is up and running, and verify that the cluster settings are correctly configured. Additionally, you may need to increase the discovery.zen.ping.unicast.hosts timeout or the discovery.zen.fd.ping_timeout setting if the error is due to slow network or overloaded master node.

This guide will help you check for common problems that cause the log ” can’t send shard failed for {}; no master known. ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster and shard.

Log Context

Log “can’t send shard failed for {}; no master known.” classname is ShardStateAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

     }

    public void shardFailed(final ShardRouting shardRouting; final String indexUUID; final String message; 
Nullable final Throwable failure) {
        DiscoveryNode masterNode = clusterService.state().nodes().masterNode();
        if (masterNode == null) {
            logger.warn("can't send shard failed for {}; no master known."; shardRouting);
            return;
        }
        innerShardFailed(shardRouting; indexUUID; masterNode; message; failure);
    }




 

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?