Repository: hadoop Updated Branches: refs/heads/branch-2 98c3544e9 -> 9c8a29616
HADOOP-14690. RetryInvocationHandler should override toString(). Contributed by Yeliang Cang. (cherry picked from commit f14be0d24126747887ddc7580f4a9a70768de23d) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/9c8a2961 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/9c8a2961 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/9c8a2961 Branch: refs/heads/branch-2 Commit: 9c8a2961697a5e87a1194ea453b79766b8f3e2a3 Parents: 98c3544 Author: Akira Ajisaka <[email protected]> Authored: Mon Jul 31 14:08:30 2017 +0900 Committer: Akira Ajisaka <[email protected]> Committed: Mon Jul 31 14:10:18 2017 +0900 ---------------------------------------------------------------------- .../apache/hadoop/io/retry/RetryInvocationHandler.java | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/9c8a2961/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 ffdd928..9f01c39 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 @@ -295,6 +295,17 @@ public class RetryInvocationHandler<T> implements RpcInvocationHandler { return new RetryInfo(maxRetryDelay, max, expectedFailoverCount, ex); } + + @Override + public String toString() { + return "RetryInfo{" + + "retryTime=" + retryTime + + ", delay=" + delay + + ", action=" + action + + ", expectedFailoverCount=" + expectedFailoverCount + + ", failException=" + failException + + '}'; + } } private final ProxyDescriptor<T> proxyDescriptor; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
