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

[JDK8] Replace AtomicLong with LongAdder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.0.0-alpha-2
    • 2.0.0-alpha-3, 2.0.0
    • None
    • None
    • Reviewed

    Description

      Currently we use many AtomicLong in HBase Region Code ,such as BucketCache calss realCacheSize,heapSize,blockNumber,accessCount and HRegion calss compactionNumBytesCompacted etc .

      In JDK8 LongAdder is faster than AtomicLong ,should use this replace AtomicLong

      Attachments

        1. HBASE-18772.master.patch
          85 kB
          Yechao Chen
        2. HBASE-18772.master-v2.patch
          78 kB
          Yechao Chen
        3. HBASE-18772.master-v3.patch
          84 kB
          Yechao Chen
        4. HBASE-18772.master-v4.patch
          85 kB
          Yechao Chen
        5. HBASE-18772.v0.addendum.patch
          3 kB
          Chia-Ping Tsai

        Activity

          People

            chenyechao Yechao Chen
            chenyechao Yechao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: