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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0-beta, 3.0.0-alpha1
    • 2.1.0-beta
    • ipc
    • None
    • 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.1.patch
          6 kB
          Chris Nauroth
        2. HADOOP-9691.2.patch
          7 kB
          Chris Nauroth
        3. HADOOP-9691.3.patch
          7 kB
          Chris Nauroth

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: