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:
parent
67673227f2
commit
a99cfe3ca0
|
@ -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
|
||||
|
|
|
@ -270,7 +270,10 @@ class NameNodeRpcServer implements NamenodeProtocols {
|
|||
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.
|
||||
|
|
Loading…
Reference in New Issue