[
https://issues.apache.org/jira/browse/KAFKA-20585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18083315#comment-18083315
]
Lianet Magrans commented on KAFKA-20585:
----------------------------------------
Nice catch, gap 2 affects the classic and async consumer I imagine.
Should get fixed with the same PR from what I see (all lives in the
AbstrctFetch). I think we would just need to add the tests for classic/async.
Thanks! https://github.com/apache/kafka/pull/22296/changes#r3298772402
> Share Fetch latency metric incorrectly updated during ShareAcknowledgeResponse
> ------------------------------------------------------------------------------
>
> Key: KAFKA-20585
> URL: https://issues.apache.org/jira/browse/KAFKA-20585
> Project: Kafka
> Issue Type: Improvement
> Reporter: Shivsundar R
> Assignee: Muralidhar Basani
> Priority: Major
>
> The ShareFetchMetricsManager records latency metrics (share-fetch-latency,
> share-fetch-request-rate and share-fetch-request-total) at the response
> handlers in ShareConsumeRequestManager after the response is processed.
> There are a couple of issues here -
> 1. This one is a straightforward bug - we are currently recording these
> metrics both in the ShareFetch and ShareAcknowledge response handlers. We
> should ideally only record this for the ShareFetch responses.
> 2. The metrics are being recorded at the end of the response handler, so we
> would be missing to update the share-fetch-rate and share-fetch-total metrics
> for responses with top level errors. This is the same pattern in FetchManager
> as well where we are missing these responses with top level errors. Not sure
> if this was intended or we should account for these as well. [~lianetm] could
> you help take a look at the regular consumer/share-consumer and see what we
> should do here?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)