HADOOP-16208. Do Not Log InterruptedException in Client.
Contributed by David Mollitor.
(cherry picked from commit c90736350b
)
This commit is contained in:
parent
f239da08af
commit
16fd00d62d
|
@ -1456,10 +1456,12 @@ public class Client implements AutoCloseable {
|
|||
connection.sendRpcRequest(call); // send the rpc request
|
||||
} catch (RejectedExecutionException e) {
|
||||
throw new IOException("connection has been closed", e);
|
||||
} catch (InterruptedException e) {
|
||||
} catch (InterruptedException ie) {
|
||||
Thread.currentThread().interrupt();
|
||||
LOG.warn("interrupted waiting to send rpc request to server", e);
|
||||
throw new IOException(e);
|
||||
IOException ioe = new InterruptedIOException(
|
||||
"Interrupted waiting to send RPC request to server");
|
||||
ioe.initCause(ie);
|
||||
throw ioe;
|
||||
}
|
||||
} catch(Exception e) {
|
||||
if (isAsynchronousMode()) {
|
||||
|
|
Loading…
Reference in New Issue