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

(cherry picked from commit 182623d2bc)
This commit is contained in:
Kihwal Lee 2021-02-03 09:03:31 -06:00
parent ba03f84812
commit 7c18c77d16
1 changed files with 3 additions and 1 deletions

View File

@ -226,6 +226,7 @@ import org.slf4j.Logger;
import com.google.common.annotations.VisibleForTesting; import com.google.common.annotations.VisibleForTesting;
import com.google.protobuf.BlockingService; import com.google.protobuf.BlockingService;
import org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
@ -540,7 +541,8 @@ public class NameNodeRpcServer implements NamenodeProtocols {
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);