vinothchandar commented on a change in pull request #2359: URL: https://github.com/apache/hudi/pull/2359#discussion_r549547956
########## File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/HoodieTimelineArchiveLog.java ########## @@ -165,13 +167,17 @@ public boolean archiveIfRequired(HoodieEngineContext context) throws IOException HoodieTimeline commitTimeline = table.getCompletedCommitsTimeline(); Option<HoodieInstant> oldestPendingCompactionInstant = table.getActiveTimeline().filterPendingCompactionTimeline().firstInstant(); + Option<HoodieInstant> oldestInflightInstant = + table.getActiveTimeline() + .getTimelineOfActions(CollectionUtils.createSet(HoodieTimeline.COMMIT_ACTION, HoodieTimeline.DELTA_COMMIT_ACTION)) Review comment: is n't there an existing method to get this? Also should we include `replacecommit` here as well? I understand the issue with compactions, since the retry will attempt to reuse the same instantTime. is that why you only have commit/deltacommit here? ---------------------------------------------------------------- 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