You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cu...@apache.org on 2006/10/17 00:13:04 UTC

svn commit: r464693 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/DFSClient.java

Author: cutting
Date: Mon Oct 16 15:13:03 2006
New Revision: 464693

URL: http://svn.apache.org/viewvc?view=rev&rev=464693
Log:
HADOOP-583.  Reduce logging level of reconnect attempts.  Contributed by Konstantin.

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=464693&r1=464692&r2=464693
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Mon Oct 16 15:13:03 2006
@@ -7,6 +7,10 @@
     variables when resolving executable program names.
     (Dhruba Borthakur via cutting) 
 
+ 2. HADOOP-583.  In DFSClient, reduce the log level of re-connect
+    attempts from 'info' to 'debug', so they are not normally shown.
+    (Konstantin Shvachko via cutting)
+
 
 Release 0.7.1 - 2006-10-11
 

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=464693&r1=464692&r2=464693
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java Mon Oct 16 15:13:03 2006
@@ -608,7 +608,8 @@
                     this.blockStream = in;
                 } catch (IOException ex) {
                     // Put chosen node into dead list, continue
-                    LOG.info("Failed to connect to " + targetAddr + ":" + ex);
+                    LOG.debug("Failed to connect to " + targetAddr + ":" 
+                              + StringUtils.stringifyException(ex));
                     deadNodes.add(chosenNode);
                     if (s != null) {
                         try {
@@ -771,7 +772,8 @@
               int nread = in.read(buf, offset, (int)(end - start + 1));
             } catch (IOException ex) {
               // Put chosen node into dead list, continue
-              LOG.info("Failed to connect to " + targetAddr + ":" + ex);
+              LOG.debug("Failed to connect to " + targetAddr + ":" 
+                        + StringUtils.stringifyException(ex));
               deadNodes.add(chosenNode);
               if (dn != null) {
                 try {