You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Apoorv Mittal (Jira)" <ji...@apache.org> on 2026/07/14 11:44:00 UTC

[jira] [Resolved] (KAFKA-20585) Share Fetch latency metric incorrectly updated during ShareAcknowledgeResponse

     [ https://issues.apache.org/jira/browse/KAFKA-20585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Apoorv Mittal resolved KAFKA-20585.
-----------------------------------
    Fix Version/s: 4.4.0
       Resolution: Fixed

> 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
>             Fix For: 4.4.0
>
>
> 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)