Skip to content

Commit

Permalink
PathIsNotEmptyDirectoryException
Browse files Browse the repository at this point in the history
  • Loading branch information
cxzl25 committed Sep 10, 2024
1 parent 4525c7e commit 7f5c60b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import java.util.stream.Collectors;

import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.PathIsNotEmptyDirectoryException;
import org.apache.hadoop.hdfs.HAUtil;
import org.apache.hadoop.hdfs.protocol.UnresolvedPathException;
import org.apache.hadoop.thirdparty.com.google.common.cache.CacheBuilder;
Expand Down Expand Up @@ -368,7 +369,8 @@ public RouterRpcServer(Configuration conf, Router router,
NotReplicatedYetException.class,
IOException.class,
ConnectException.class,
RetriableException.class);
RetriableException.class,
PathIsNotEmptyDirectoryException.class);

this.rpcServer.addSuppressedLoggingExceptions(
StandbyException.class, UnresolvedPathException.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import org.apache.hadoop.conf.ReconfigurationTaskStatus;
import org.apache.hadoop.crypto.CryptoProtocolVersion;
import org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries;
import org.apache.hadoop.fs.PathIsNotEmptyDirectoryException;
import org.apache.hadoop.hdfs.AddBlockFlag;
import org.apache.hadoop.fs.CacheFlag;
import org.apache.hadoop.fs.CommonConfigurationKeys;
Expand Down Expand Up @@ -541,7 +542,8 @@ public NameNodeRpcServer(Configuration conf, NameNode nn)
FSLimitException.PathComponentTooLongException.class,
FSLimitException.MaxDirectoryItemsExceededException.class,
DisallowedDatanodeException.class,
XAttrNotFoundException.class);
XAttrNotFoundException.class,
PathIsNotEmptyDirectoryException.class);

clientRpcServer.addSuppressedLoggingExceptions(StandbyException.class,
UnresolvedPathException.class);
Expand Down

0 comments on commit 7f5c60b

Please sign in to comment.