HDFS-15607. Addendum: Create trash dir when allowing snapshottable dir (#2448)

This commit is contained in:
Siyao Meng 2020-11-10 12:13:15 -08:00 committed by GitHub
parent 45434c93e8
commit fbd2220167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
package org.apache.hadoop.hdfs;
import org.apache.hadoop.security.AccessControlException;
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
import org.apache.hadoop.thirdparty.com.google.common.base.Preconditions;
import org.apache.hadoop.thirdparty.com.google.common.collect.Lists;
@ -2146,7 +2147,7 @@ public class DistributedFileSystem extends FileSystem
trashRoot + ". Rename or delete it, then try again.");
}
}
} catch (FileNotFoundException ignored) {
} catch (FileNotFoundException | AccessControlException ignored) {
}
}