hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r521907 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/DFSClient.java
Date Fri, 23 Mar 2007 21:19:26 GMT
Author: cutting
Date: Fri Mar 23 14:19:25 2007
New Revision: 521907

URL: http://svn.apache.org/viewvc?view=rev&rev=521907
Log:
HADOOP-1064.  Reduce log level of some DFSClient messages.  Contributed by Dhruba.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=521907&r1=521906&r2=521907
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Fri Mar 23 14:19:25 2007
@@ -21,6 +21,9 @@
  6. HADOOP-1120.  Add contrib/data_join, tools to simplify joining
     data from multiple sources using MapReduce.  (Runping Qi via cutting)
 
+ 7. HADOOP-1064.  Reduce log level of some DFSClient messages.
+    (Dhruba Borthakur via cutting)
+
 
 Release 0.12.2 - 2007-23-17
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java?view=diff&rev=521907&r1=521906&r2=521907
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java Fri Mar 23 14:19:25
2007
@@ -166,11 +166,13 @@
         try {
           return namenode.getBlockSize(f.toString());
         } catch (IOException ie) {
-          LOG.info("Problem getting block size: " + 
-                   StringUtils.stringifyException(ie));
           if (--retries == 0) {
+            LOG.warn("Problem getting block size: " + 
+                      StringUtils.stringifyException(ie));
             throw ie;
           }
+          LOG.debug("Problem getting block size: " + 
+                    StringUtils.stringifyException(ie));
         }
       }
     }
@@ -710,7 +712,9 @@
                   }
                   return result;
                 } catch (IOException e) {
-                  LOG.warn("DFS Read: " + StringUtils.stringifyException(e));
+                  if (retries == 1) {
+                    LOG.warn("DFS Read: " + StringUtils.stringifyException(e));
+                  }
                   blockEnd = -1;
                   if (currentNode != null) { deadNodes.add(currentNode); }
                   if (--retries == 0) {



Mime
View raw message