n3nash commented on a change in pull request #3092: URL: https://github.com/apache/hudi/pull/3092#discussion_r658465855
########## File path: hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/DeltaSync.java ########## @@ -473,7 +476,9 @@ public void refreshTimeline() throws IOException { boolean success = writeClient.commit(instantTime, writeStatusRDD, Option.of(checkpointCommitMetadata)); if (success) { LOG.info("Commit " + instantTime + " successful!"); - + if (this.props.getBoolean(ENABLE_KAFKA_COMMIT_OFFSET, DEFAULT_ENABLE_KAFKA_COMMIT_OFFSET)) { Review comment: @veenaypatil I think the callback approach sounds cleaner and reduces complex if-else logic in DeltaSync. Let's do that. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org