WenDing-Y commented on code in PR #9376:
URL: https://github.com/apache/seatunnel/pull/9376#discussion_r2122586659
##########
seatunnel-connectors-v2/connector-kafka/src/main/java/org/apache/seatunnel/connectors/seatunnel/kafka/source/KafkaSourceSplitEnumerator.java:
##########
@@ -204,6 +204,10 @@ private void setPartitionStartOffset() throws
ExecutionException, InterruptedExc
if (pendingSplit.containsKey(key)) {
pendingSplit.get(key).setStartOffset(value);
}
+ if (!isStreamingMode && value < 0) {
Review Comment:
Yes, this logic only applies to batch processing scenarios. In the case of
stream processing, since tasks run continuously and the source data may also
change over time, skipping certain partitions carelessly could lead to
unexpected or strange issues.
--
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]