Skip to content

Commit d887e49

Browse files
sunlishengiwasakims
authored andcommitted
Remove WARN log when ipc connection interrupted in Client#handleSaslConnectionFailure()
Signed-off-by: sunlisheng <sunlisheng@xiaomi.com>
1 parent f6d20da commit d887e49

File tree

1 file changed

+11
-2
lines changed
  • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc

1 file changed

+11
-2
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,17 @@ public Object run() throws IOException, InterruptedException {
761761
throw (IOException) new IOException(msg).initCause(ex);
762762
}
763763
} else {
764-
LOG.warn("Exception encountered while connecting to "
765-
+ "the server : " + ex);
764+
// With RequestHedgingProxyProvider, one rpc call will send multiple
765+
// requests to all namenodes. After one request return successfully,
766+
// all other requests will be interrupted. It's not a big problem,
767+
// and should not print a warning log.
768+
if (ex instanceof InterruptedIOException) {
769+
LOG.debug("Exception encountered while connecting to the server",
770+
ex);
771+
} else {
772+
LOG.warn("Exception encountered while connecting to the server ",
773+
ex);
774+
}
766775
}
767776
if (ex instanceof RemoteException)
768777
throw (RemoteException) ex;

0 commit comments

Comments
 (0)