HADOOP-16793. Redefine log level 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 0c0be3b9f0
commit dc010b9844
1 changed files with 11 additions and 2 deletions

View File

@ -763,8 +763,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;