Details
Description
After upgrading to Kafka Streams 2.7.0, the JMX metrics commit-latency-max and commit-latency-avg is always equal to 0.
For the same application, with Kafka Streams 2.6.0 and bellow, I can observe:
With Kafka Streams 2.7.0:
By quickly looking at the issue, I got the feeling it's a drawback from: https://github.com/apache/kafka/pull/9634.
We are setting now to the current Time in the maybeCommit() function: https://github.com/apache/kafka/blob/2.7/streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java#L930.
And just after we do a Time.millisecond() - now (that we just updated) to compute the latency: https://github.com/apache/kafka/blob/2.7/streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java#L692
Attachments
Attachments
Issue Links
- is caused by
-
KAFKA-10755 Should consider commit latency when computing next commit timestamp
- Resolved
- links to