Expected request count to be tracked for request but found not count – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.9-8.9

Briefly, this error occurs when Elasticsearch expects a certain request count to be tracked but it doesn’t find the count. This could be due to a bug in the system or a misconfiguration. To resolve this issue, you can try the following: 1) Check your Elasticsearch configuration and ensure it’s set up correctly. 2) Update your Elasticsearch version to the latest one as it might be a bug that has been fixed in newer versions. 3) Check your application code to ensure it’s correctly tracking the request count.

This guide will help you check for common problems that cause the log ” Expected request count to be tracked for request [{}] but found not count. ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: repository-s3, repositories, request.

Log Context

Log “Expected request count to be tracked for request [{}] but found not count.” classname is S3BlobStore.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

    }

    private long getRequestCount(Request> request) {
        Number requestCount = request.getAWSRequestMetrics().getTimingInfo().getCounter(AWSRequestMetrics.Field.RequestCount.name());
        if (requestCount == null) {
            logger.warn("Expected request count to be tracked for request [{}] but found not count."; request);
            return 0L;
        }
        return requestCount.longValue();
    }

 

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?