shangxinli commented on code in PR #18362:
URL: https://github.com/apache/hudi/pull/18362#discussion_r2976548877
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java:
##########
@@ -658,6 +666,26 @@ private void doCommit(long checkpointId, String instant,
List<WriteStatus> dataW
}
}
+ /**
+ * Get commit metadata from the last completed commit on the timeline.
+ * Used for pre-commit validation to compare current commit against previous.
+ */
+ private Option<HoodieCommitMetadata> getPreviousCommitMetadata() {
+ try {
+ HoodieTimeline completedTimeline = this.metaClient.reloadActiveTimeline()
+ .filterCompletedInstants();
Review Comment:
Changed from filterCompletedInstants() to
getWriteTimeline().filterCompletedInstants() to only look at write commits
--
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]