diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 628d0717029..c99d51e1c39 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -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 diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/LossyRetryInvocationHandler.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/LossyRetryInvocationHandler.java index bdb6a614ef3..7a557c477ca 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/LossyRetryInvocationHandler.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/LossyRetryInvocationHandler.java @@ -51,11 +51,15 @@ public class LossyRetryInvocationHandler extends RetryInvocationHandler { 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; } }