Remove WARN log when ipc connection interrupted in Client#handleSaslConnectionFailure()

Signed-off-by: sunlisheng <sunlisheng@xiaomi.com>
(cherry picked from commit d887e49dd4)
This commit is contained in:
sunlisheng 2020-01-08 10:20:36 +08:00 committed by Masatake Iwasaki
parent d4f75e2798
commit c36fbcbf17
1 changed files with 11 additions and 2 deletions

View File

@ -761,8 +761,17 @@ public class Client implements AutoCloseable {
throw (IOException) new IOException(msg).initCause(ex);
}
} else {
LOG.warn("Exception encountered while connecting to "
+ "the server : " + ex);
// With RequestHedgingProxyProvider, one rpc call will send multiple
// requests to all namenodes. After one request return successfully,
// all other requests will be interrupted. It's not a big problem,
// and should not print a warning log.
if (ex instanceof InterruptedIOException) {
LOG.debug("Exception encountered while connecting to the server",
ex);
} else {
LOG.warn("Exception encountered while connecting to the server ",
ex);
}
}
if (ex instanceof RemoteException)
throw (RemoteException) ex;