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:
parent
d4f75e2798
commit
c36fbcbf17
|
@ -761,8 +761,17 @@ public class Client implements AutoCloseable {
|
||||||
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