HDFS-4858. HDFS DataNode to NameNode RPC should timeout. Contributed by Henry Wang.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1567535 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b5254a4de
commit
fa78a7a99a
|
@ -220,7 +220,7 @@ public class Client {
|
|||
* @param conf Configuration
|
||||
* @return the ping interval
|
||||
*/
|
||||
final static int getPingInterval(Configuration conf) {
|
||||
final public static int getPingInterval(Configuration conf) {
|
||||
return conf.getInt(CommonConfigurationKeys.IPC_PING_INTERVAL_KEY,
|
||||
CommonConfigurationKeys.IPC_PING_INTERVAL_DEFAULT);
|
||||
}
|
||||
|
|
|
@ -413,6 +413,9 @@ Release 2.4.0 - UNRELEASED
|
|||
HDFS-5886. Potential null pointer deference in RpcProgramNfs3#readlink()
|
||||
(brandonli)
|
||||
|
||||
HDFS-4858. HDFS DataNode to NameNode RPC should timeout.
|
||||
(Henry Wang via shv)
|
||||
|
||||
Release 2.3.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -102,9 +102,10 @@ public class DatanodeProtocolClientSideTranslatorPB implements
|
|||
private static DatanodeProtocolPB createNamenode(
|
||||
InetSocketAddress nameNodeAddr, Configuration conf,
|
||||
UserGroupInformation ugi) throws IOException {
|
||||
return RPC.getProxy(DatanodeProtocolPB.class,
|
||||
return RPC.getProtocolProxy(DatanodeProtocolPB.class,
|
||||
RPC.getProtocolVersion(DatanodeProtocolPB.class), nameNodeAddr, ugi,
|
||||
conf, NetUtils.getSocketFactory(conf, DatanodeProtocolPB.class));
|
||||
conf, NetUtils.getSocketFactory(conf, DatanodeProtocolPB.class),
|
||||
org.apache.hadoop.ipc.Client.getPingInterval(conf), null).getProxy();
|
||||
}
|
||||
|
||||
/** Create a {@link NameNode} proxy */
|
||||
|
|
Loading…
Reference in New Issue