HADOOP-13552. RetryInvocationHandler logs all remote exceptions. Contributed by Jason Lowe
(cherry picked from commit 92d8f37155
)
This commit is contained in:
parent
6f10a0a87b
commit
b1979bec51
|
@ -351,10 +351,12 @@ public class RetryInvocationHandler<T> implements RpcInvocationHandler {
|
||||||
if (retryInfo.isFail()) {
|
if (retryInfo.isFail()) {
|
||||||
// fail.
|
// fail.
|
||||||
if (retryInfo.action.reason != null) {
|
if (retryInfo.action.reason != null) {
|
||||||
LOG.warn("Exception while invoking call #" + callId + " "
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("Exception while invoking call #" + callId + " "
|
||||||
+ proxyDescriptor.getProxyInfo().getString(method.getName())
|
+ proxyDescriptor.getProxyInfo().getString(method.getName())
|
||||||
+ ". Not retrying because " + retryInfo.action.reason, e);
|
+ ". Not retrying because " + retryInfo.action.reason, e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue