[
https://issues.apache.org/jira/browse/HADOOP-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601038#action_12601038
]
Ankur commented on HADOOP-3453:
-------------------------------
I think it makes sense to keep a separate output stream lock the way Steve
suggested.
Object outLock = new Object()
synchronizes (outLock) { ... }
This should fix the Null pointer issue with synchronizing on null output
stream.
> ipc.Client.close() throws NullPointerException
> ----------------------------------------------
>
> Key: HADOOP-3453
> URL: https://issues.apache.org/jira/browse/HADOOP-3453
> Project: Hadoop Core
> Issue Type: Bug
> Components: ipc
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Hairong Kuang
> Attachments: ipc_client_npe.patch
>
>
> There are two possible cases that Client.close() throws NullPointerException
> - Exception in thread "IPC Client (47) connection to localhost/127.0.0.1:3070
> from tsz" java.lang.NullPointerException
> at org.apache.hadoop.ipc.Client$Connection.close(Client.java:521)
> at org.apache.hadoop.ipc.Client$Connection.run(Client.java:434)
> - Exception in thread "Thread-2" java.lang.NullPointerException
> at org.apache.hadoop.ipc.Client$Connection.close(Client.java:519)
> at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:317)
> at org.apache.hadoop.ipc.Client$Connection.access$1700(Client.java:175)
> at org.apache.hadoop.ipc.Client.getConnection(Client.java:766)
> at org.apache.hadoop.ipc.Client.call(Client.java:680)
> at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:216)
> ...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.