FrankYang0529 commented on code in PR #17199: URL: https://github.com/apache/kafka/pull/17199#discussion_r1869492850
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerNetworkThread.java: ########## @@ -60,21 +61,24 @@ public class ConsumerNetworkThread extends KafkaThread implements Closeable { private final Supplier<ApplicationEventProcessor> applicationEventProcessorSupplier; private final Supplier<NetworkClientDelegate> networkClientDelegateSupplier; private final Supplier<RequestManagers> requestManagersSupplier; + private final Optional<KafkaConsumerMetrics> kafkaConsumerMetrics; private ApplicationEventProcessor applicationEventProcessor; private NetworkClientDelegate networkClientDelegate; private RequestManagers requestManagers; private volatile boolean running; private final IdempotentCloser closer = new IdempotentCloser(); private volatile Duration closeTimeout = Duration.ofMillis(DEFAULT_CLOSE_TIMEOUT_MS); private volatile long cachedMaximumTimeToWait = MAX_POLL_TIMEOUT_MS; + private long lastPollTimeMs = 0L; Review Comment: Hi @kirktrue, this is only used for metrics `time-between-network-thread-poll-max` and `time-between-network-thread-poll-avg`. Thanks. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org