[ 
https://issues.apache.org/jira/browse/KAFKA-13888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17536210#comment-17536210
 ] 

Niket Goel commented on KAFKA-13888:
------------------------------------

Hi [~Jack-Lee],

 

Thanks for the suggestion. I think your proposal is to add a field - `Lag` to 
the `DescribeQuorumResponse` and modeling lag as the difference in the offsets 
of the leaders and the respective voters.

Assuming I understood your proposal correctly, this is a little different from 
what we want. The lag in terms of offset can already by computed by a client 
which calls the `DescribeQuorum` API, as the `CurrentVoters` will return the 
`LogEndOffset` of each voter and the leader's own offset information is also 
known. However, as described the in the KIP[1], the offset difference is not 
necessarily an accurate picture the lag for a voter in the quorum. The KIP 
proposes adding some time based fields to the response to allow a more accurate 
computation of the lag.

Feel free to add your comments to the discussion thread for the KIP if you have 
any.

Thanks
Niket

[1] 
https://cwiki.apache.org/confluence/display/KAFKA/KIP-836%3A+Addition+of+Information+in+DescribeQuorumResponse+about+Voter+Lag

> KIP-836: Addition of Information in DescribeQuorumResponse about Voter Lag
> --------------------------------------------------------------------------
>
>                 Key: KAFKA-13888
>                 URL: https://issues.apache.org/jira/browse/KAFKA-13888
>             Project: Kafka
>          Issue Type: Improvement
>          Components: kraft
>            Reporter: Niket Goel
>            Priority: Major
>
> Tracking issue for the implementation of KIP:836



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to