Briefly, this error occurs when Elasticsearch is unable to retrieve the required data from the specified index. This could be due to a variety of reasons such as network issues, incorrect index name, or insufficient permissions. To resolve this issue, you can check the network connectivity, verify the index name, and ensure that the user has the necessary permissions to access the index. Additionally, check the Elasticsearch logs for more detailed error information. If the index is corrupted, you may need to restore it from a backup.
This guide will help you check for common problems that cause the log ” total failure in fetching ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .
Log Context
Log “total failure in fetching” class name is AsyncShardFetch.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :
@Override public void onFailure(Exception e) { Listfailures = new ArrayList<>(nodes.length); for (final DiscoveryNode node : nodes) { failures.add(new FailedNodeException(node.getId(); "total failure in fetching"; e)); } processAsyncFetch(null; failures; fetchingRound); } private boolean assertSameNodes(BaseNodesResponse response) {