[
https://issues.apache.org/jira/browse/KAFKA-2678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15009342#comment-15009342
]
Alan Braithwaite commented on KAFKA-2678:
-----------------------------------------
Isn't it more accurate for it to be negative? You're basically saying that the
lag is ahead of the committed offset.
Coming from a user, I'd rather let it have a negative number and explain it in
the documentation then just saying the lag is 0.
> partition level lag metrics can be negative
> -------------------------------------------
>
> Key: KAFKA-2678
> URL: https://issues.apache.org/jira/browse/KAFKA-2678
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8.2.1
> Reporter: Jun Rao
> Assignee: Dong Lin
> Fix For: 0.9.0.0
>
>
> Currently, the per partition level lag metric can be negative since the last
> committed offset can be smaller than the follower's offset. This is a bit
> confusing to end users. We probably should lower bound it by 0.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)