Abacn commented on code in PR #34669:
URL: https://github.com/apache/beam/pull/34669#discussion_r2051100390


##########
sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaUnboundedReader.java:
##########
@@ -268,7 +268,8 @@ public CheckpointMark getCheckpointMark() {
                         p.nextOffset,
                         p.lastWatermark.getMillis()))
             .collect(Collectors.toList()),
-        source.getSpec().isCommitOffsetsInFinalizeEnabled() ? 
Optional.of(this) : Optional.empty());

Review Comment:
   This change seems to be no-op if previous logic worked. It changed from 
providing a Optional wrapped reader to set a boolean flag on same condition.
   
   Would you mind sharing context why previously CheckpointMark did not have 
the reader available?



-- 
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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to