hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aengin...@apache.org
Subject [24/50] [abbrv] hadoop git commit: HADOOP-13552. RetryInvocationHandler logs all remote exceptions. Contributed by Jason Lowe
Date Thu, 01 Sep 2016 15:50:20 GMT
HADOOP-13552. RetryInvocationHandler logs all remote exceptions. Contributed by Jason Lowe


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/92d8f371
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/92d8f371
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/92d8f371

Branch: refs/heads/HDFS-7240
Commit: 92d8f371553b88e5b3a9d3354e93f75d60d81368
Parents: c258171
Author: Jason Lowe <jlowe@apache.org>
Authored: Mon Aug 29 15:55:38 2016 +0000
Committer: Jason Lowe <jlowe@apache.org>
Committed: Mon Aug 29 15:55:38 2016 +0000

----------------------------------------------------------------------
 .../org/apache/hadoop/io/retry/RetryInvocationHandler.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/92d8f371/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java
----------------------------------------------------------------------
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 7bd3a15..c657d20 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
@@ -351,9 +351,11 @@ public class RetryInvocationHandler<T> implements RpcInvocationHandler
{
     if (retryInfo.isFail()) {
       // fail.
       if (retryInfo.action.reason != null) {
-        LOG.warn("Exception while invoking call #" + callId + " "
-            + proxyDescriptor.getProxyInfo().getString(method.getName())
-            + ". Not retrying because " + retryInfo.action.reason, e);
+        if (LOG.isDebugEnabled()) {
+          LOG.debug("Exception while invoking call #" + callId + " "
+              + proxyDescriptor.getProxyInfo().getString(method.getName())
+              + ". Not retrying because " + retryInfo.action.reason, e);
+        }
       }
       throw e;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message