浏览代码

HADOOP-17808. Avoid excessive logging for interruption (ADDENDUM) (#3267)

(cherry picked from commit 9fe1f24ec11c3e1c2ed5ee9db801d40a2f7a2ed6)
Viraj Jasani 3 年之前
父节点
当前提交
2f5e527910
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java

+ 3 - 3
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java

@@ -1052,7 +1052,7 @@ public class Client implements AutoCloseable {
           try {
             wait(timeout);
           } catch (InterruptedException e) {
-            LOG.info("Interrupted while waiting to retrieve RPC response.", e);
+            LOG.trace("Interrupted while waiting to retrieve RPC response.");
             Thread.currentThread().interrupt();
           }
         }
@@ -1386,8 +1386,8 @@ public class Client implements AutoCloseable {
         try {
           emptyCondition.wait();
         } catch (InterruptedException e) {
-          LOG.info("Interrupted while waiting on all connections to be closed.",
-              e);
+          LOG.trace(
+              "Interrupted while waiting on all connections to be closed.");
           Thread.currentThread().interrupt();
         }
       }