[ 
https://issues.apache.org/jira/browse/HADOOP-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hairong Kuang updated HADOOP-2870:
----------------------------------

    Attachment: closeConnection.patch

This patch
1. adds a reference counter to each entry to the IPC Client cache;
2. adds a static method to RPC: stopProxy(VersionProtocol)
3. makes sure that IPC clients and servers close connections in their shutdoown 
methods
4. makes sure that Datanode and DFSClient stop the proxy in their shutdown 
methods
5. cleanup RPC code by removing junit tests related methods
6. fix the slowRPC test code in TestRPC so it does not need the change of RPC 
code
7. fix varous junit test to explicitely close various connections.

> Datanode.shutdown() and Namenode.stop() should close all rpc connections
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-2870
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2870
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: ipc
>    Affects Versions: 0.16.0
>            Reporter: Hairong Kuang
>            Assignee: Hairong Kuang
>             Fix For: 0.17.0
>
>         Attachments: closeConnection.patch
>
>
> Currently this two cleanup methods do not close all existing rpc connections. 
> If a mini dfs cluster gets shutdown and then restarted as we do in 
> TestFileCreation, RPCs in second mini cluster reuse the unclosed connections 
> opened in the first run but there is no server running to serve the request. 
> So the client get stuck waiting for the response forever if client side 
> timeout gets removed as suggested by hadoop-2811.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to