nsivabalan commented on code in PR #13255: URL: https://github.com/apache/hudi/pull/13255#discussion_r2073979409
########## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/SimpleConcurrentFileWritesConflictResolutionStrategy.java: ########## @@ -67,8 +68,7 @@ public Stream<HoodieInstant> getCandidateInstants(HoodieTableMetaClient metaClie Stream<HoodieInstant> compactionAndClusteringPendingTimeline = activeTimeline .filterPendingReplaceClusteringAndCompactionTimeline() .filter(instant -> ClusteringUtils.isClusteringInstant(activeTimeline, instant, metaClient.getInstantGenerator()) - || HoodieTimeline.COMPACTION_ACTION.equals(instant.getAction())) - .findInstantsAfter(currentInstant.requestedTime()) + || (!HoodieTimeline.CLUSTERING_ACTION.equals(instant.getAction()) && compareTimestamps(instant.requestedTime(), GREATER_THAN, currentInstant.requestedTime()))) Review Comment: we are already filtering for pending replaceclusteringAndCompactiponTimeline at L69. and so, here we are really referring to only compaction right. Curious to know why you have coded it up differently? Bcoz, only incase of compaction and clustering we use L67 to 72 to understand the instants of interest. for ingestion commits (writes by ingestion writer like commit, delta commit, replace commits (insert overwrite etc), we are relying on L63 to 66. -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org