Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In Fetcher we record records-lag in terms of number of records for any partition. Currently this metric value is updated only if number of parsed records is not empty. This means that if consumer has already fully caught up and there is no new data into the topic, this metric's value will be negative infinity and users can not rely on this metric to know if their consumer has caught up.
We can fix this problem by assuming the lag is zero is FetchResponse is empty.
Attachments
Issue Links
- relates to
-
KAFKA-3241 JmxReporter produces invalid JSON when a value is Infinity
- Open
- links to