kirktrue commented on code in PR #17699: URL: https://github.com/apache/kafka/pull/17699#discussion_r1868794544
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java: ########## @@ -1170,25 +1174,11 @@ private Map<TopicPartition, Long> beginningOrEndOffset(Collection<TopicPartition public OptionalLong currentLag(TopicPartition topicPartition) { acquireAndEnsureOpen(); try { - final Long lag = subscriptions.partitionLag(topicPartition, isolationLevel); - - // if the log end offset is not known and hence cannot return lag and there is - // no in-flight list offset requested yet, - // issue a list offset request for that partition so that next time - // we may get the answer; we do not need to wait for the return value - // since we would not try to poll the network client synchronously Review Comment: I reworded it to be more succinct. LMK if it needs further tweaking. -- 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