anishshri-db commented on code in PR #59285:
URL: https://github.com/apache/spark/pull/59285#discussion_r4235462415
##########
connector/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/consumer/KafkaDataConsumer.scala:
##########
@@ -450,6 +450,9 @@ private[kafka010] class KafkaDataConsumer(
throwOnDataLoss(toFetchOffset, untilOffset, topicPartition,
groupId, e)
} else {
logOnDataLoss(topicPartition, groupId, s"Cannot fetch offset
$toFetchOffset", e)
+ // The consumer was released while handling the out-of-range
offset, so reacquire it
Review Comment:
lets add the SPARK jira here and also explain that if we don't reacquire,
the consumer could be released or reassigned leading to incorrect results or
failures ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]