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 abdc81bb87..212ab3695c 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 @@ -1051,7 +1051,10 @@ private synchronized boolean waitForWork() { if (timeout>0) { try { wait(timeout); - } catch (InterruptedException e) {} + } catch (InterruptedException e) { + LOG.info("Interrupted while waiting to retrieve RPC response.", e); + Thread.currentThread().interrupt(); + } } } @@ -1383,6 +1386,9 @@ public void stop() { try { emptyCondition.wait(); } catch (InterruptedException e) { + LOG.info("Interrupted while waiting on all connections to be closed.", + e); + Thread.currentThread().interrupt(); } } }