You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by mj...@apache.org on 2023/09/08 02:25:37 UTC

[kafka] branch trunk updated: MINOR: fix currentLag javadoc (#14224)

This is an automated email from the ASF dual-hosted git repository.

mjsax pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 01b91af59cb MINOR: fix currentLag javadoc (#14224)
01b91af59cb is described below

commit 01b91af59cb08b843470742a7a25d1f4239ebf45
Author: Lucas Brutschy <lu...@users.noreply.github.com>
AuthorDate: Fri Sep 8 04:25:31 2023 +0200

    MINOR: fix currentLag javadoc (#14224)
    
    Reviewers: Matthias J. Sax <ma...@confluent.io>
---
 .../src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java b/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
index a2f2eed4eec..f029fe74f89 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
+++ b/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
@@ -2219,7 +2219,8 @@ public class KafkaConsumer<K, V> implements Consumer<K, V> {
      * for example if there is no position yet, or if the end offset is not known yet.
      *
      * <p>
-     * This method uses locally cached metadata and never makes a remote call.
+     * This method uses locally cached metadata. If the log end offset is not known yet, it triggers a request to fetch
+     * the log end offset, but returns immediately.
      *
      * @param topicPartition The partition to get the lag for.
      *