HADOOP-13552. RetryInvocationHandler logs all remote exceptions. Contributed by Jason Lowe
(cherry picked from commit 92d8f371553b88e5b3a9d3354e93f75d60d81368)
This commit is contained in:
parent
e813a3ea4a
commit
039c831f5f
@ -351,10 +351,12 @@ private RetryInfo handleException(final Method method, final int callId,
|
|||||||
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…
x
Reference in New Issue
Block a user