From 50fc9577c0296d6c89cac7608bf3689f00b17370 Mon Sep 17 00:00:00 2001 From: David Mollitor Date: Thu, 4 Apr 2019 16:16:57 +0100 Subject: [PATCH] HADOOP-16208. Do Not Log InterruptedException in Client. Contributed by David Mollitor. (cherry picked from commit c90736350ba158c7872a39426e7a29c5e5e0bb48) --- .../src/main/java/org/apache/hadoop/ipc/Client.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java index 07a2f13a442..c6ac7328066 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java @@ -1409,10 +1409,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()) {