From b2ffbd879620ad7650e046b9c797ae81118b452f Mon Sep 17 00:00:00 2001 From: Jing Zhao Date: Mon, 16 Jun 2014 17:51:37 +0000 Subject: [PATCH] HADOOP-10657. Have RetryInvocationHandler log failover attempt at INFO level. Contributed by Ming Ma. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1602941 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../org/apache/hadoop/io/retry/RetryInvocationHandler.java | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 73e6421e0c8..18137a081cf 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -427,6 +427,9 @@ Release 2.5.0 - UNRELEASED HADOOP-10688. Expose thread-level FileSystem StatisticsData (Sandy Ryza) + HADOOP-10657. Have RetryInvocationHandler log failover attempt at INFO + level. (Ming Ma via jing9) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java index f3ba6cf8f54..543567e4781 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java @@ -136,9 +136,7 @@ public class RetryInvocationHandler implements RpcInvocationHandler { msg += " after " + invocationFailoverCount + " fail over attempts"; } msg += ". Trying to fail over " + formatSleepMessage(action.delayMillis); - if (LOG.isDebugEnabled()) { - LOG.debug(msg, e); - } + LOG.info(msg, e); } else { if(LOG.isDebugEnabled()) { LOG.debug("Exception while invoking " + method.getName()