Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12529

Use ThreadLocalRandom for RandomQueueBalancer

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.99.1, 0.98.6.1, 2.0.0
    • Fix Version/s: 0.98.9, 0.99.2
    • Component/s: IPC/RPC
    • Labels:
      None

      Description

      looks like the Random in RandomQueueBalancer is now the main cause of contention in the rpc queue insertion. we should replace that Random with a ThreadLocalRandom.

        Attachments

        1. HBASE-12529-0.98-v1.patch
          2 kB
          Matteo Bertozzi
        2. HBASE-12529-v0.patch
          1 kB
          Matteo Bertozzi
        3. HBASE-12529-v1.patch
          2 kB
          Matteo Bertozzi
        4. HBASE-12529-v2.patch
          7 kB
          Matteo Bertozzi
        5. RandTest.java
          3 kB
          Matteo Bertozzi

          Activity

            People

            • Assignee:
              mbertozzi Matteo Bertozzi
              Reporter:
              mbertozzi Matteo Bertozzi
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: