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 su...@apache.org on 2011/05/20 01:11:14 UTC
svn commit: r1125170 - in /hadoop/common/branches/branch-0.20-security:
CHANGES.txt src/hdfs/org/apache/hadoop/hdfs/DFSClient.java
Author: suresh
Date: Thu May 19 23:11:14 2011
New Revision: 1125170
URL: http://svn.apache.org/viewvc?rev=1125170&view=rev
Log:
HDFS-1906. Remove logging exception stack trace in client logs (Porting change from trunk)
Modified:
hadoop/common/branches/branch-0.20-security/CHANGES.txt
hadoop/common/branches/branch-0.20-security/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java
Modified: hadoop/common/branches/branch-0.20-security/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/CHANGES.txt?rev=1125170&r1=1125169&r2=1125170&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.20-security/CHANGES.txt Thu May 19 23:11:14 2011
@@ -26,6 +26,10 @@ Release 0.20.205.0 - unreleased
HADOOP-7272. Remove unnecessary security related info logs. (suresh)
+ HDFS-1906. Remove logging exception stack trace in client logs when one of
+ the datanode targets to read from is not reachable. (suresh)
+
+
Release 0.20.204.0 - unreleased
BUG FIXES
Modified: hadoop/common/branches/branch-0.20-security/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java?rev=1125170&r1=1125169&r2=1125170&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java (original)
+++ hadoop/common/branches/branch-0.20-security/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java Thu May 19 23:11:14 2011
@@ -1783,8 +1783,11 @@ public class DFSClient implements FSCons
refetchToken--;
fetchBlockAt(target);
} else {
- LOG.info("Failed to connect to " + targetAddr
- + ", add to deadNodes and continue", ex);
+ LOG.warn("Failed to connect to " + targetAddr
+ + ", add to deadNodes and continue" + ex);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Connection failure", ex);
+ }
// Put chosen node into dead list, continue
addToDeadNodes(chosenNode);
}
@@ -2016,8 +2019,10 @@ public class DFSClient implements FSCons
continue;
} else {
LOG.warn("Failed to connect to " + targetAddr + " for file " + src
- + " for block " + block.getBlock() + ":"
- + StringUtils.stringifyException(e));
+ + " for block " + block.getBlock() + ":" + e);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Connection failure ", e);
+ }
}
} finally {
IOUtils.closeStream(reader);