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

Extra commas in LruBlockCache.logStats between hitRatio and cachingAccesses if hitCount is not 0

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 1.5.0, 1.4.10, 1.3.4, 2.1.4, 1.2.12
    • None
    • BlockCache
    • None
    • cache

    Description

       

      LruBlockCache#logStats()

       "hitRatio=" + (stats.getHitCount() == 0 ?  "0" : (StringUtils.formatPercent(stats.getHitRatio(), 2)+ ", ")) + ", " +
      "cachingAccesses="
      

      if hitCount is not 0, the log will have 2 commas between hitRatio and cachingAccesses

      Attachments

        1. HBASE-22367.branch-1.patch
          2 kB
          puleya7
        2. hits.not.0.png
          93 kB
          puleya7
        3. hits.is.0.png
          56 kB
          puleya7
        4. HBASE-22367.master.patch
          2 kB
          puleya7

        Activity

          People

            puleya7 puleya7
            puleya7 puleya7
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: