You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/02/22 15:40:33 UTC

[GitHub] [kafka] ijuma commented on a change in pull request #10137: KAFKA-12268: Implement task idling semantics via currentLag API

ijuma commented on a change in pull request #10137:
URL: https://github.com/apache/kafka/pull/10137#discussion_r580351600



##########
File path: clients/src/main/java/org/apache/kafka/clients/consumer/Consumer.java
##########
@@ -243,6 +244,11 @@
      */
     Map<TopicPartition, Long> endOffsets(Collection<TopicPartition> partitions, Duration timeout);
 
+    /**
+     * @see KafkaConsumer#currentLag(TopicPartition)
+     */
+    OptionalLong currentLag(TopicPartition topicPartition);

Review comment:
       Quick question, should the API take a `Collection<TopicPartition>` like other APIs?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org