HADOOP-13552. RetryInvocationHandler logs all remote exceptions. Contributed by Jason Lowe

(cherry picked from commit 92d8f371553b88e5b3a9d3354e93f75d60d81368)
This commit is contained in:
Jason Lowe 2016-08-29 15:55:38 +00:00
parent e813a3ea4a
commit 039c831f5f

View File

@ -351,10 +351,12 @@ private RetryInfo handleException(final Method method, final int callId,
if (retryInfo.isFail()) {
// fail.
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())
+ ". Not retrying because " + retryInfo.action.reason, e);
}
}
throw e;
}