Remove WARN log when ipc connection interrupted in Client#handleSaslConnectionFailure()
Signed-off-by: sunlisheng <sunlisheng@xiaomi.com>
This commit is contained in:
parent
f6d20daf40
commit
d887e49dd4
@ -761,8 +761,17 @@ public Object run() throws IOException, InterruptedException {
|
|||||||
throw (IOException) new IOException(msg).initCause(ex);
|
throw (IOException) new IOException(msg).initCause(ex);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG.warn("Exception encountered while connecting to "
|
// With RequestHedgingProxyProvider, one rpc call will send multiple
|
||||||
+ "the server : " + ex);
|
// 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)
|
if (ex instanceof RemoteException)
|
||||||
throw (RemoteException) ex;
|
throw (RemoteException) ex;
|
||||||
|
Loading…
Reference in New Issue
Block a user