HADOOP-13458. LoadBalancingKMSClientProvider#doOp should log IOException stacktrace. Contributed by Chen Liang.
This commit is contained in:
parent
6f63566694
commit
a1f6564d31
@ -33,6 +33,7 @@
|
|||||||
import org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension;
|
import org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension;
|
||||||
import org.apache.hadoop.security.Credentials;
|
import org.apache.hadoop.security.Credentials;
|
||||||
import org.apache.hadoop.security.token.Token;
|
import org.apache.hadoop.security.token.Token;
|
||||||
|
import org.apache.hadoop.util.StringUtils;
|
||||||
import org.apache.hadoop.util.Time;
|
import org.apache.hadoop.util.Time;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -93,8 +94,8 @@ private <T> T doOp(ProviderCallable<T> op, int currPos)
|
|||||||
try {
|
try {
|
||||||
return op.call(provider);
|
return op.call(provider);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
LOG.warn("KMS provider at [{}] threw an IOException [{}]!!",
|
LOG.warn("KMS provider at [{}] threw an IOException!! {}",
|
||||||
provider.getKMSUrl(), ioe.getMessage());
|
provider.getKMSUrl(), StringUtils.stringifyException(ioe));
|
||||||
ex = ioe;
|
ex = ioe;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (e instanceof RuntimeException) {
|
if (e instanceof RuntimeException) {
|
||||||
|
Loading…
Reference in New Issue
Block a user