You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Kamal Chandraprakash (Jira)" <ji...@apache.org> on 2025/10/29 09:12:00 UTC

[jira] [Resolved] (KAFKA-19841) Fix the negative remote bytesLag and segmentsLag metric

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

Kamal Chandraprakash resolved KAFKA-19841.
------------------------------------------
    Resolution: Invalid

> Fix the negative remote bytesLag and segmentsLag metric
> -------------------------------------------------------
>
>                 Key: KAFKA-19841
>                 URL: https://issues.apache.org/jira/browse/KAFKA-19841
>             Project: Kafka
>          Issue Type: Task
>            Reporter: Kamal Chandraprakash
>            Assignee: Kamal Chandraprakash
>            Priority: Minor
>
> * Each broker rotates the segment independently.
>  * When the leadership changes to the next replica, then the highest offset uploaded to the remote storage might already be higher than the baseOffset of the current leader active segment.
>  * During this case, the {{onlyLocalLogSegmentsSize}} and {{onlyLocalLogSegmentsCount}} returns 0, so the metrics shows negative value (0 - activeSegment.size).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)