|
@@ -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;
|