File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -761,8 +761,17 @@ public Object run() throws IOException, InterruptedException {
761761 throw (IOException ) new IOException (msg ).initCause (ex );
762762 }
763763 } else {
764- LOG .warn ("Exception encountered while connecting to "
765- + "the server : " + ex );
764+ // With RequestHedgingProxyProvider, one rpc call will send multiple
765+ // requests to all namenodes. After one request return successfully,
766+ // all other requests will be interrupted. It's not a big problem,
767+ // and should not print a warning log.
768+ if (ex instanceof InterruptedIOException ) {
769+ LOG .debug ("Exception encountered while connecting to the server" ,
770+ ex );
771+ } else {
772+ LOG .warn ("Exception encountered while connecting to the server " ,
773+ ex );
774+ }
766775 }
767776 if (ex instanceof RemoteException )
768777 throw (RemoteException ) ex ;
You can’t perform that action at this time.
0 commit comments