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

(cherry picked from commit 182623d2bc)
This commit is contained in:
Kihwal Lee 2021-02-03 08:58:10 -06:00
parent 70411cb1f1
commit 96773ec81b

View File

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