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-2686. Remove DistributedUpgrade related code. (suresh)
|
||||||
|
|
||||||
|
HDFS-3817. Avoid printing SafeModeException stack trace.
|
||||||
|
(Brandon Li via suresh)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -270,6 +270,9 @@ class NameNodeRpcServer implements NamenodeProtocols {
|
||||||
this.minimumDataNodeVersion = conf.get(
|
this.minimumDataNodeVersion = conf.get(
|
||||||
DFSConfigKeys.DFS_NAMENODE_MIN_SUPPORTED_DATANODE_VERSION_KEY,
|
DFSConfigKeys.DFS_NAMENODE_MIN_SUPPORTED_DATANODE_VERSION_KEY,
|
||||||
DFSConfigKeys.DFS_NAMENODE_MIN_SUPPORTED_DATANODE_VERSION_DEFAULT);
|
DFSConfigKeys.DFS_NAMENODE_MIN_SUPPORTED_DATANODE_VERSION_DEFAULT);
|
||||||
|
|
||||||
|
// Set terse exception whose stack trace won't be logged
|
||||||
|
this.clientRpcServer.addTerseExceptions(SafeModeException.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue