Skip to content

Commit 182623d

Browse files
committed
HDFS-15799. Make DisallowedDatanodeException terse. Contributed by Richard Ross.
1 parent 26b9d48 commit 182623d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@
225225

226226
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
227227
import org.apache.hadoop.thirdparty.protobuf.BlockingService;
228+
import org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException;
228229

229230
import javax.annotation.Nonnull;
230231

@@ -530,7 +531,8 @@ public NameNodeRpcServer(Configuration conf, NameNode nn)
530531
QuotaByStorageTypeExceededException.class,
531532
AclException.class,
532533
FSLimitException.PathComponentTooLongException.class,
533-
FSLimitException.MaxDirectoryItemsExceededException.class);
534+
FSLimitException.MaxDirectoryItemsExceededException.class,
535+
DisallowedDatanodeException.class);
534536

535537
clientRpcServer.addSuppressedLoggingExceptions(StandbyException.class,
536538
UnresolvedPathException.class);

0 commit comments

Comments
 (0)