HADOOP-16208. Do Not Log InterruptedException in Client.
Contributed by David Mollitor.
This commit is contained in:
parent
993f36ee33
commit
c90736350b
@ -1445,10 +1445,12 @@ Writable call(RPC.RpcKind rpcKind, Writable rpcRequest,
|
|||||||
connection.sendRpcRequest(call); // send the rpc request
|
connection.sendRpcRequest(call); // send the rpc request
|
||||||
} catch (RejectedExecutionException e) {
|
} catch (RejectedExecutionException e) {
|
||||||
throw new IOException("connection has been closed", e);
|
throw new IOException("connection has been closed", e);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException ie) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
LOG.warn("interrupted waiting to send rpc request to server", e);
|
IOException ioe = new InterruptedIOException(
|
||||||
throw new IOException(e);
|
"Interrupted waiting to send RPC request to server");
|
||||||
|
ioe.initCause(ie);
|
||||||
|
throw ioe;
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
if (isAsynchronousMode()) {
|
if (isAsynchronousMode()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user