HADOOP-17808. ipc.Client to set interrupt flag after catching InterruptedException (#3219)
This commit is contained in:
parent
98412ce2e1
commit
3a52bfc5db
|
@ -1051,7 +1051,10 @@ public class Client implements AutoCloseable {
|
||||||
if (timeout>0) {
|
if (timeout>0) {
|
||||||
try {
|
try {
|
||||||
wait(timeout);
|
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 class Client implements AutoCloseable {
|
||||||
try {
|
try {
|
||||||
emptyCondition.wait();
|
emptyCondition.wait();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
LOG.info("Interrupted while waiting on all connections to be closed.",
|
||||||
|
e);
|
||||||
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue