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

This commit is contained in:
Viraj Jasani 2021-08-06 06:57:30 +05:30 committed by GitHub
parent e80b5a08e2
commit 9fe1f24ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1052,7 +1052,7 @@ private synchronized boolean waitForWork() {
try { try {
wait(timeout); wait(timeout);
} catch (InterruptedException e) { } 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(); Thread.currentThread().interrupt();
} }
} }
@ -1386,8 +1386,8 @@ public void stop() {
try { try {
emptyCondition.wait(); emptyCondition.wait();
} catch (InterruptedException e) { } catch (InterruptedException e) {
LOG.info("Interrupted while waiting on all connections to be closed.", LOG.trace(
e); "Interrupted while waiting on all connections to be closed.");
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();
} }
} }