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

RPC clients can generate call ID using AtomicInteger instead of synchronizing on the Client instance.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0-beta, 3.0.0-alpha1
    • Fix Version/s: 2.1.0-beta
    • Component/s: ipc
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      As noted in discussion on HADOOP-9688, we can optimize generation of call ID in the RPC client code. Currently, it synchronizes on the Client instance to coordinate access to a shared int. We can switch this to AtomicInteger to avoid lock contention.

        Attachments

        1. HADOOP-9691.3.patch
          7 kB
          Chris Nauroth
        2. HADOOP-9691.2.patch
          7 kB
          Chris Nauroth
        3. HADOOP-9691.1.patch
          6 kB
          Chris Nauroth

          Issue Links

            Activity

              People

              • Assignee:
                cnauroth Chris Nauroth
                Reporter:
                cnauroth Chris Nauroth
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: