HADOOP-16208. Do Not Log InterruptedException in Client.

Contributed by David Mollitor.

(cherry picked from commit c90736350b)
This commit is contained in:
David Mollitor 2019-04-04 21:13:09 +01:00 committed by Steve Loughran
parent d9899015eb
commit 41f1bc2056
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 5 additions and 3 deletions

View File

@ -1409,10 +1409,12 @@ public class Client implements AutoCloseable {
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()) {