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

Use ThreadLocalRandom for RandomQueueBalancer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.99.1, 0.98.6.1, 2.0.0
    • 0.98.9, 0.99.2
    • IPC/RPC
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: