Briefly, this error occurs when Elasticsearch encounters an issue while trying to retrieve the count of operations currently being processed. This could be due to a network issue, a node failure, or a problem with the cluster state. To resolve this issue, you could try restarting the Elasticsearch node, checking the network connectivity, or verifying the health of your Elasticsearch cluster. If the problem persists, you may need to investigate the logs for more detailed error information.
This guide will help you check for common problems that cause the log ” {} unexpected error while retrieving in flight op count ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: indices, flush.
Log Context
Log “{} unexpected error while retrieving in flight op count” classname is SyncedFlushService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
listener.onResponse(response); } @Override public void handleException(TransportException exp) { logger.debug("{} unexpected error while retrieving in flight op count"; shardId); listener.onFailure(exp); } @Override public String executor() {