Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.24.0
-
None
-
Reviewed
Description
The process to clean up an RPC proxy object is to call RPC.stopProxy, which looks up the RPCEngine previously associated with the interface which that proxy object provides and calls RPCEngine.stopProxy passing in the proxy object. Every concrete implementation of RPCEngine.stopProxy then looks up the invocation handler associated with the proxy object and calls close() on that invocation handler.
This process can be simplified by cutting out the steps of looking up the previously-registered RPCEngine, and instead just having RPC.stopProxy directly look up the invocation handler for the proxy object and call close() on it.
Attachments
Attachments
Issue Links
- blocks
-
HDFS-1973 HA: HDFS clients must handle namenode failover and switch over to the new active namenode.
- Resolved
- incorporates
-
MAPREDUCE-2934 MR portion of HADOOP-7607 - Simplify the RPC proxy cleanup process
- Closed