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 ar...@apache.org on 2014/02/13 23:00:15 UTC
svn commit: r1568059 - in
/hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common:
CHANGES.txt
src/main/java/org/apache/hadoop/io/retry/LossyRetryInvocationHandler.java
Author: arpit
Date: Thu Feb 13 22:00:14 2014
New Revision: 1568059
URL: http://svn.apache.org/r1568059
Log:
HADOOP-10343. Merging change r1568054 from trunk
Modified:
hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt
hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/LossyRetryInvocationHandler.java
Modified: hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt?rev=1568059&r1=1568058&r2=1568059&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt (original)
+++ hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt Thu Feb 13 22:00:14 2014
@@ -17,6 +17,8 @@ Release 2.4.0 - UNRELEASED
HADOOP-10333. Fix grammatical error in overview.html document.
(René Nyffenegger via suresh)
+ HADOOP-10343. Change info to debug log in LossyRetryInvocationHandler. (arpit)
+
OPTIMIZATIONS
BUG FIXES
Modified: hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/LossyRetryInvocationHandler.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/LossyRetryInvocationHandler.java?rev=1568059&r1=1568058&r2=1568059&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/LossyRetryInvocationHandler.java (original)
+++ hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/LossyRetryInvocationHandler.java Thu Feb 13 22:00:14 2014
@@ -51,11 +51,15 @@ public class LossyRetryInvocationHandler
int retryCount = RetryCount.get();
if (retryCount < this.numToDrop) {
RetryCount.set(++retryCount);
- LOG.info("Drop the response. Current retryCount == " + retryCount);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Drop the response. Current retryCount == " + retryCount);
+ }
throw new RetriableException("Fake Exception");
} else {
- LOG.info("retryCount == " + retryCount
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("retryCount == " + retryCount
+ ". It's time to normally process the response");
+ }
return result;
}
}