HDFS-3817. Avoid printing SafeModeException stack trace in RPC server. Contributed by Brandon Li.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1376054 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2012-08-22 13:59:40 +00:00
parent 67673227f2
commit a99cfe3ca0
2 changed files with 7 additions and 1 deletions

View File

@ -122,6 +122,9 @@ Trunk (unreleased changes)
HDFS-2686. Remove DistributedUpgrade related code. (suresh)
HDFS-3817. Avoid printing SafeModeException stack trace.
(Brandon Li via suresh)
OPTIMIZATIONS
BUG FIXES

View File

@ -270,7 +270,10 @@ public NameNodeRpcServer(Configuration conf, NameNode nn)
this.minimumDataNodeVersion = conf.get(
DFSConfigKeys.DFS_NAMENODE_MIN_SUPPORTED_DATANODE_VERSION_KEY,
DFSConfigKeys.DFS_NAMENODE_MIN_SUPPORTED_DATANODE_VERSION_DEFAULT);
}
// Set terse exception whose stack trace won't be logged
this.clientRpcServer.addTerseExceptions(SafeModeException.class);
}
/**
* Actually start serving requests.