This is an automated email from the ASF dual-hosted git repository.
danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new 08361606de1 [HUDI-7013] Drop table command cannot delete dir when
purge is enable (#9960)
08361606de1 is described below
commit 08361606de1a8a4b1a5471c8186ea1c8aa79eb9a
Author: xuzifu666 <[email protected]>
AuthorDate: Thu Nov 2 13:46:03 2023 +0800
[HUDI-7013] Drop table command cannot delete dir when purge is enable
(#9960)
Co-authored-by: xuyu <[email protected]>
---
hudi-common/src/main/java/org/apache/hudi/common/fs/FSUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hudi-common/src/main/java/org/apache/hudi/common/fs/FSUtils.java
b/hudi-common/src/main/java/org/apache/hudi/common/fs/FSUtils.java
index 5d9896f8f2a..954fe75a0ac 100644
--- a/hudi-common/src/main/java/org/apache/hudi/common/fs/FSUtils.java
+++ b/hudi-common/src/main/java/org/apache/hudi/common/fs/FSUtils.java
@@ -702,7 +702,7 @@ public class FSUtils {
pairOfSubPathAndConf -> deleteSubPath(
pairOfSubPathAndConf.getKey(),
pairOfSubPathAndConf.getValue(), true)
);
- boolean result = fs.delete(dirPath, false);
+ boolean result = fs.delete(dirPath, true);
LOG.info("Removed directory at " + dirPath);
return result;
}