diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 7bfad34929..f14c33a1da 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -315,6 +315,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 bdb6a614ef..7a557c477c 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 @@ protected Object invokeMethod(Method method, Object[] args) throws Throwable { 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; } }