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

This commit is contained in:
Jason Lowe 2016-08-29 15:55:38 +00:00
parent c25817159a
commit 92d8f37155
1 changed files with 5 additions and 3 deletions

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;
}