HADOOP-16868. ipc.Server readAndProcess threw NullPointerException. Contributed by Tsz-wo Sze.
(cherry picked from commit cb3f3cca01
)
This commit is contained in:
parent
de63115a2a
commit
d411a849e1
|
@ -1788,7 +1788,7 @@ public abstract class Server {
|
|||
|
||||
private SocketChannel channel;
|
||||
private ByteBuffer data;
|
||||
private ByteBuffer dataLengthBuffer;
|
||||
private final ByteBuffer dataLengthBuffer;
|
||||
private LinkedList<RpcCall> responseQueue;
|
||||
// number of outstanding rpcs
|
||||
private AtomicInteger rpcCount = new AtomicInteger();
|
||||
|
@ -2832,7 +2832,6 @@ public abstract class Server {
|
|||
private synchronized void close() {
|
||||
disposeSasl();
|
||||
data = null;
|
||||
dataLengthBuffer = null;
|
||||
if (!channel.isOpen())
|
||||
return;
|
||||
try {socket.shutdownOutput();} catch(Exception e) {
|
||||
|
|
Loading…
Reference in New Issue