tdas commented on a change in pull request #23324: [SPARK-26267][SS]Retry when 
detecting incorrect offsets from Kafka
URL: https://github.com/apache/spark/pull/23324#discussion_r241928887
 
 

 ##########
 File path: 
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaOffsetReader.scala
 ##########
 @@ -192,19 +199,76 @@ private[kafka010] class KafkaOffsetReader(
   /**
    * Fetch the latest offsets for the topic partitions that are indicated
    * in the [[ConsumerStrategy]].
+   *
+   * Kafka may return earliest offsets when we are requesting latest offsets 
(KAFKA-7703). To avoid
 
 Review comment:
   Well, Kafka returns earliest offset only if there is another call (poll I 
guess) right before the seekToEnd.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to