Selaa lähdekoodia

HDFS-5245. shouldRetry() in WebHDFSFileSystem generates excessive warnings. Contributed by Haohui Mai.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1526393 13f79535-47bb-0310-9956-ffa450edef68
Jing Zhao 11 vuotta sitten
vanhempi
commit
e3912e918b
2 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  1. 3 0
      CHANGES.txt
  2. 5 1
      src/hdfs/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java

+ 3 - 0
CHANGES.txt

@@ -40,6 +40,9 @@ Release 1.3.0 - unreleased
     HDFS-5038. Backport several branch-2 APIs (FileSystem#newInstance, 
     DFSClient#getNamenode, and FileStatus#isDirectory) to branch-1. (jing9)
 
+    HDFS-5245. shouldRetry() in WebHDFSFileSystem generates excessive warnings.
+    (Haohui Mai via jing9)
+
   BUG FIXES
 
     HADOOP-9863. Backport HADOOP-8686 to support BigEndian on ppc64. 

+ 5 - 1
src/hdfs/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java

@@ -502,7 +502,11 @@ public class WebHdfsFileSystem extends FileSystem
             return;
           }
         } catch(Exception e) {
-          LOG.warn("Original exception is ", ioe);
+          /**
+           * In this case the retry policy has decided that it won't retry.
+           * Swallow the exception to avoid excessive warnings in the logs.
+           */
+          // LOG.warn("Original exception is ", ioe);
           throw toIOException(e);
         }
       }