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

Signed-off-by: sunlisheng <sunlisheng@xiaomi.com>
This commit is contained in:
sunlisheng 2020-01-08 10:20:36 +08:00 committed by Masatake Iwasaki
parent f6d20daf40
commit d887e49dd4

View File

@ -761,8 +761,17 @@ public Object run() throws IOException, InterruptedException {
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;