HDFS-17621. Make PathIsNotEmptyDirectoryException terse (#7036). Contributed by dzcxzl.
This commit is contained in:
parent
50fcfd8b29
commit
ae63d8edd5
@ -56,6 +56,7 @@
|
|||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import org.apache.hadoop.fs.Path;
|
import org.apache.hadoop.fs.Path;
|
||||||
|
import org.apache.hadoop.fs.PathIsNotEmptyDirectoryException;
|
||||||
import org.apache.hadoop.hdfs.HAUtil;
|
import org.apache.hadoop.hdfs.HAUtil;
|
||||||
import org.apache.hadoop.hdfs.protocol.UnresolvedPathException;
|
import org.apache.hadoop.hdfs.protocol.UnresolvedPathException;
|
||||||
import org.apache.hadoop.thirdparty.com.google.common.cache.CacheBuilder;
|
import org.apache.hadoop.thirdparty.com.google.common.cache.CacheBuilder;
|
||||||
@ -368,7 +369,8 @@ public RouterRpcServer(Configuration conf, Router router,
|
|||||||
NotReplicatedYetException.class,
|
NotReplicatedYetException.class,
|
||||||
IOException.class,
|
IOException.class,
|
||||||
ConnectException.class,
|
ConnectException.class,
|
||||||
RetriableException.class);
|
RetriableException.class,
|
||||||
|
PathIsNotEmptyDirectoryException.class);
|
||||||
|
|
||||||
this.rpcServer.addSuppressedLoggingExceptions(
|
this.rpcServer.addSuppressedLoggingExceptions(
|
||||||
StandbyException.class, UnresolvedPathException.class);
|
StandbyException.class, UnresolvedPathException.class);
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
import org.apache.hadoop.conf.ReconfigurationTaskStatus;
|
import org.apache.hadoop.conf.ReconfigurationTaskStatus;
|
||||||
import org.apache.hadoop.crypto.CryptoProtocolVersion;
|
import org.apache.hadoop.crypto.CryptoProtocolVersion;
|
||||||
import org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries;
|
import org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries;
|
||||||
|
import org.apache.hadoop.fs.PathIsNotEmptyDirectoryException;
|
||||||
import org.apache.hadoop.hdfs.AddBlockFlag;
|
import org.apache.hadoop.hdfs.AddBlockFlag;
|
||||||
import org.apache.hadoop.fs.CacheFlag;
|
import org.apache.hadoop.fs.CacheFlag;
|
||||||
import org.apache.hadoop.fs.CommonConfigurationKeys;
|
import org.apache.hadoop.fs.CommonConfigurationKeys;
|
||||||
@ -541,7 +542,8 @@ public NameNodeRpcServer(Configuration conf, NameNode nn)
|
|||||||
FSLimitException.PathComponentTooLongException.class,
|
FSLimitException.PathComponentTooLongException.class,
|
||||||
FSLimitException.MaxDirectoryItemsExceededException.class,
|
FSLimitException.MaxDirectoryItemsExceededException.class,
|
||||||
DisallowedDatanodeException.class,
|
DisallowedDatanodeException.class,
|
||||||
XAttrNotFoundException.class);
|
XAttrNotFoundException.class,
|
||||||
|
PathIsNotEmptyDirectoryException.class);
|
||||||
|
|
||||||
clientRpcServer.addSuppressedLoggingExceptions(StandbyException.class,
|
clientRpcServer.addSuppressedLoggingExceptions(StandbyException.class,
|
||||||
UnresolvedPathException.class);
|
UnresolvedPathException.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user