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

The incorrect block cache count and size are caused by removing duplicate block key in the LruBlockCache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      LruBlockCache.java
      // Check return value from the Map#remove before updating the metrics
        protected long evictBlock(LruCachedBlock block, boolean evictedByEvictionProcess) {
          map.remove(block.getCacheKey());
          updateSizeMetrics(block, true);
      ...
      }
      

      Attachments

        1. HBASE-16157-v4.patch
          5 kB
          Chia-Ping Tsai
        2. HBASE-16157-v3.patch
          5 kB
          Chia-Ping Tsai
        3. HBASE-16157-v2.patch
          3 kB
          Chia-Ping Tsai
        4. HBASE-16157-v1.patch
          4 kB
          Chia-Ping Tsai

        Activity

          People

            chia7712 Chia-Ping Tsai
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: