From b016f08f67830ed3ca741bc6a10c3f5164781be5 Mon Sep 17 00:00:00 2001 From: Junping Du Date: Wed, 18 Oct 2017 15:06:30 -0700 Subject: [PATCH] HADOOP-14958. Fix source-level compatibility after HADOOP-11252. Contributed by Junping Du. --- .../src/main/java/org/apache/hadoop/ipc/Client.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java index c9ac61562d..a0417d6365 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java @@ -212,7 +212,8 @@ synchronized ExecutorService unrefAndCleanup() { * @param conf Configuration * @param pingInterval the ping interval */ - static final void setPingInterval(Configuration conf, int pingInterval) { + public static final void setPingInterval(Configuration conf, + int pingInterval) { conf.setInt(CommonConfigurationKeys.IPC_PING_INTERVAL_KEY, pingInterval); } @@ -223,7 +224,7 @@ static final void setPingInterval(Configuration conf, int pingInterval) { * @param conf Configuration * @return the ping interval */ - static final int getPingInterval(Configuration conf) { + public static final int getPingInterval(Configuration conf) { return conf.getInt(CommonConfigurationKeys.IPC_PING_INTERVAL_KEY, CommonConfigurationKeys.IPC_PING_INTERVAL_DEFAULT); }