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 by the cleaner, ignore", path);
   ```

##########
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.warn("File {} was deleted by the 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:
us...@infra.apache.org


Reply via email to