HADOOP-12178. NPE during handling of SASL setup if problem with SASL resolver class. Contributed by Steve Loughran
This commit is contained in:
parent
aa09880ab8
commit
ed9806ea40
@ -1271,6 +1271,9 @@ Release 2.8.0 - UNRELEASED
|
|||||||
HADOOP-12457. [JDK8] Fix a failure of compiling common by javadoc.
|
HADOOP-12457. [JDK8] Fix a failure of compiling common by javadoc.
|
||||||
(Akira AJISAKA via ozawa)
|
(Akira AJISAKA via ozawa)
|
||||||
|
|
||||||
|
HADOOP-12178. NPE during handling of SASL setup if problem with SASL
|
||||||
|
resolver class. (Steve Loughran via zxu)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-12051. ProtobufRpcEngine.invoke() should use Exception.toString()
|
HADOOP-12051. ProtobufRpcEngine.invoke() should use Exception.toString()
|
||||||
|
@ -749,7 +749,12 @@ public class Client {
|
|||||||
return setupSaslConnection(in2, out2);
|
return setupSaslConnection(in2, out2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (Exception ex) {
|
} catch (IOException ex) {
|
||||||
|
if (saslRpcClient == null) {
|
||||||
|
// whatever happened -it can't be handled, so rethrow
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
// otherwise, assume a connection problem
|
||||||
authMethod = saslRpcClient.getAuthMethod();
|
authMethod = saslRpcClient.getAuthMethod();
|
||||||
if (rand == null) {
|
if (rand == null) {
|
||||||
rand = new Random();
|
rand = new Random();
|
||||||
@ -811,7 +816,7 @@ public class Client {
|
|||||||
if (t instanceof IOException) {
|
if (t instanceof IOException) {
|
||||||
markClosed((IOException)t);
|
markClosed((IOException)t);
|
||||||
} else {
|
} else {
|
||||||
markClosed(new IOException("Couldn't set up IO streams", t));
|
markClosed(new IOException("Couldn't set up IO streams: " + t, t));
|
||||||
}
|
}
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user