Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Duplicate
-
2.0.0-alpha, 3.0.0-alpha1
-
None
-
None
Description
When making a call on an IPC connection where the other end has shut down, I see the following exception:
Caused by: java.lang.NullPointerException
at org.apache.hadoop.ipc.Client$Connection.receiveResponse(Client.java:852)
at org.apache.hadoop.ipc.Client$Connection.run(Client.java:781)
from the lines:
RpcResponseHeaderProto response =
RpcResponseHeaderProto.parseDelimitedFrom(in);
int callId = response.getCallId();
This is because parseDelimitedFrom() returns null in the case that the next thing to be read on the stream is an EOF.
Attachments
Attachments
Issue Links
- is duplicated by
-
HADOOP-8442 NPE in reading Client.java while reading response when dest process went down.
- Resolved