Apoorv Mittal created KAFKA-17230: ------------------------------------- Summary: Kafka consumer client doesn't report node request-latency metrics Key: KAFKA-17230 URL: https://issues.apache.org/jira/browse/KAFKA-17230 Project: Kafka Issue Type: Bug Components: clients Reporter: Apoorv Mittal Assignee: Apoorv Mittal
Kafka Consumer client registers node/connection latency metrics in [Selector.java|https://github.com/apache/kafka/blob/9d634629f29cd402a723d7e7bece18c8099065a4/clients/src/main/java/org/apache/kafka/common/network/Selector.java#L1359] but the values against the metric is never recorded. This seems to be an issue since inception. However, the same metric is also created for Kafka Producer but the value is recorded for Kafka Producer in [Sender.java|https://github.com/apache/kafka/blob/9d634629f29cd402a723d7e7bece18c8099065a4/clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java#L1092]. Hence node - request-latency-max and request-latency-avg appears correctly for Kafka Producer but is NaN for Kafka Consumer. -- This message was sent by Atlassian Jira (v8.20.10#820010)