rkhachatryan commented on code in PR #360:
URL:
https://github.com/apache/flink-connector-kafka/pull/360#discussion_r4740559172
##########
flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/source/enumerator/initializer/LatestOffsetsInitializer.java:
##########
@@ -40,8 +40,15 @@ public Map<TopicPartition, Long> getPartitionOffsets(
return partitionOffsetsRetriever.endOffsets(partitions);
}
+ /**
+ * The starting offsets are resolved by the enumerator and are within the
log at that time, so
+ * this strategy only applies to a position that left the log afterwards:
a running or restored
Review Comment:
Done. The Javadoc on both initializers now also covers a position above the
log end after a truncated or recreated topic.
OffsetsInitializer#getAutoOffsetResetStrategy now says the strategy applies to
any out-of-range position of a split, not just to initial offsets, and that an
explicit auto.offset.reset takes precedence.
--
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]