mingaliu opened a new pull request #10674: URL: https://github.com/apache/kafka/pull/10674
This is to help monitor the 'real' fetch latency by removing the waitTime when FetchRequest is in purgatory. The changes include: 1. Add waitTimeMs in FetchResponse() 2. In Kafka API handler (in handleFetchRequest() function), when creating FetchResponse(), set the waitTimeMs as the time spent in purgatory 3. In Follower broker processFetchRequest(), it tracks the real latency of fetch requests by minus the waitTimeMs from FetchResponse. 4. In FetcherStats, we will add a new histogram to track this calculated "true" fetch latency. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org