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

    • Type: Improvement
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.5.0, 1.4.10, 1.3.4, 2.1.4, 1.2.12
    • Fix Version/s: None
    • Component/s: BlockCache
    • Labels:
      None
    • Tags:
      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. hits.not.0.png
          93 kB
          puleya7
        2. hits.is.0.png
          56 kB
          puleya7
        3. HBASE-22367.master.patch
          2 kB
          puleya7
        4. HBASE-22367.branch-1.patch
          2 kB
          puleya7

          Activity

            People

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

              Dates

              • Created:
                Updated: