HBASE-15854 Log the cause of SASL connection failures (Robert Yokota)
This commit is contained in:
parent
43d1a999fe
commit
fdaf3be84f
|
@ -661,7 +661,7 @@ public class AsyncRpcChannelImpl implements AsyncRpcChannel {
|
|||
} else {
|
||||
String msg = "Couldn't setup connection for "
|
||||
+ UserGroupInformation.getLoginUser().getUserName() + " to " + serverPrincipal;
|
||||
LOG.warn(msg);
|
||||
LOG.warn(msg, ex);
|
||||
throw (IOException) new IOException(msg).initCause(ex);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -672,7 +672,7 @@ public class RpcClientImpl extends AbstractRpcClient {
|
|||
String msg = "Couldn't setup connection for " +
|
||||
UserGroupInformation.getLoginUser().getUserName() +
|
||||
" to " + serverPrincipal;
|
||||
LOG.warn(msg);
|
||||
LOG.warn(msg, ex);
|
||||
throw (IOException) new IOException(msg).initCause(ex);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue