lw309637554 commented on a change in pull request #2784: URL: https://github.com/apache/hudi/pull/2784#discussion_r615499401
########## File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/ReplaceArchivalHelper.java ########## @@ -68,6 +68,11 @@ public static boolean deleteReplacedFileGroups(HoodieEngineContext context, HoodieTableMetaClient metaClient, TableFileSystemView fileSystemView, HoodieInstant instant, List<String> replacedPartitions) { + // There is no file id to be replaced in the very first replace commit file for insert overwrite operation + if (replacedPartitions.isEmpty()) { + LOG.warn("Found empty partitionToReplaceFileIds"); Review comment: can use partitionToReplaceFileIds -> replacedPartitions better? -- 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