HADOOP-14690. RetryInvocationHandler should override toString(). Contributed by Yeliang Cang.
This commit is contained in:
parent
f8bed5e9a7
commit
f14be0d241
@ -295,6 +295,17 @@ static RetryInfo newRetryInfo(RetryPolicy policy, Exception e,
|
|||||||
|
|
||||||
return new RetryInfo(maxRetryDelay, max, expectedFailoverCount, ex);
|
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;
|
private final ProxyDescriptor<T> proxyDescriptor;
|
||||||
|
Loading…
Reference in New Issue
Block a user