You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/06/21 12:41:32 UTC

[GitHub] [hudi] danny0405 commented on a change in pull request #3125: [HUDI-2047] Ignore FileNotFoundException in WriteProfiles #getWritePathsOfInstant

danny0405 commented on a change in pull request #3125:
URL: https://github.com/apache/hudi/pull/3125#discussion_r655341054



##########
File path: hudi-flink/src/main/java/org/apache/hudi/sink/partitioner/profile/WriteProfiles.java
##########
@@ -119,12 +121,16 @@ public static void clean(String path) {
         }).map(path -> {
           try {
             return fs.getFileStatus(path);
+          } catch (FileNotFoundException fe) {
+            LOG.warn("File {} was deleted by the cleaning, ignore.", path);
+            return null;

Review comment:
       ```java
   LOG.error("File {} was deleted because of cleaner ignore", path);
   ```




-- 
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:
users@infra.apache.org