Skip to content

Commit fbd2220

Browse files
authored
HDFS-15607. Addendum: Create trash dir when allowing snapshottable dir (#2448)
1 parent 45434c9 commit fbd2220

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package org.apache.hadoop.hdfs;
2020

2121

22+
import org.apache.hadoop.security.AccessControlException;
2223
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
2324
import org.apache.hadoop.thirdparty.com.google.common.base.Preconditions;
2425
import org.apache.hadoop.thirdparty.com.google.common.collect.Lists;
@@ -2146,7 +2147,7 @@ private void checkTrashRootAndRemoveIfEmpty(final Path p) throws IOException {
21462147
trashRoot + ". Rename or delete it, then try again.");
21472148
}
21482149
}
2149-
} catch (FileNotFoundException ignored) {
2150+
} catch (FileNotFoundException | AccessControlException ignored) {
21502151
}
21512152
}
21522153

0 commit comments

Comments
 (0)