JingsongLi commented on code in PR #6510:
URL: https://github.com/apache/paimon/pull/6510#discussion_r2485881773


##########
paimon-common/src/main/java/org/apache/paimon/fs/RenamingTwoPhaseOutputStream.java:
##########
@@ -132,5 +133,13 @@ public void discard(FileIO fileIO) throws IOException {
         public Path targetFilePath() {
             return targetPath;
         }
+
+        @Override
+        public void clean(FileIO fileIO) throws IOException {
+            Path path = tempPath.getParent();
+            if (fileIO.exists(path)) {
+                fileIO.deleteQuietly(path);

Review Comment:
   Maybe you should use `deleteDirectoryQuietly`.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to