Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7607

Simplify the RPC proxy cleanup process

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.24.0
    • 2.0.0-alpha
    • ipc
    • 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

        1. hadoop-7607.0.patch
          6 kB
          Aaron Myers
        2. hadoop-7607.1.patch
          9 kB
          Aaron Myers
        3. HADOOP-7607.2.patch
          0.8 kB
          Uma Maheswara Rao G

        Issue Links

          Activity

            People

              atm Aaron Myers
              atm Aaron Myers
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: