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

L1 miss metric is incorrect when using CombinedBlockCache

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      In CombinedBlockCache getBlock method

      public Cacheable getBlock(BlockCacheKey cacheKey, boolean caching,
            boolean repeat, boolean updateCacheMetrics) {
          // TODO: is there a hole here, or just awkwardness since in the lruCache getBlock
          // we end up calling l2Cache.getBlock.
          // We are not in a position to exactly look at LRU cache or BC as BlockType may not be getting
          // passed always.
          return l1Cache.containsBlock(cacheKey)?
              l1Cache.getBlock(cacheKey, caching, repeat, updateCacheMetrics):
              l2Cache.getBlock(cacheKey, caching, repeat, updateCacheMetrics);
        }
      

      If L1 does not contains cacheKey, it will never check it in L1, so that L1 miss metrics is always 0.

      Attachments

        Activity

          People

            xytss123 Yutong Xiao
            xytss123 Yutong Xiao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: