HDFS-15799. Make DisallowedDatanodeException terse. Contributed by Richard Ross.

This commit is contained in:
Kihwal Lee 2021-02-03 08:55:50 -06:00
parent 26b9d480e8
commit 182623d2bc

View File

@ -225,6 +225,7 @@
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
import org.apache.hadoop.thirdparty.protobuf.BlockingService;
import org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException;
import javax.annotation.Nonnull;
@ -530,7 +531,8 @@ public NameNodeRpcServer(Configuration conf, NameNode nn)
QuotaByStorageTypeExceededException.class,
AclException.class,
FSLimitException.PathComponentTooLongException.class,
FSLimitException.MaxDirectoryItemsExceededException.class);
FSLimitException.MaxDirectoryItemsExceededException.class,
DisallowedDatanodeException.class);
clientRpcServer.addSuppressedLoggingExceptions(StandbyException.class,
UnresolvedPathException.class);