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 ffdd9288c4..9f01c390a6 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 @@ static RetryInfo newRetryInfo(RetryPolicy policy, Exception e, 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 proxyDescriptor;