diff --git a/CHANGES.txt b/CHANGES.txt index a07196c..d7cf0f5 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -227,7 +227,6 @@ Release 0.91.0 - Unreleased HBASE-4290 HLogSplitter doesn't mark its MonitoredTask as complete in non-distributed case (todd) HBASE-4303 HRegionInfo.toString has bad quoting (todd) - HBASE-4307 race condition in CacheTestUtils (Li Pi) IMPROVEMENTS HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack) diff --git a/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java b/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java index b332ba8..6baf9cd 100644 --- a/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java +++ b/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java @@ -353,17 +353,19 @@ public class SlabCache implements SlabItemEvictionWatcher, BlockCache, HeapSize SlabCache.LOG.info("Current heap size is: " + StringUtils.humanReadableInt(slabCache.heapSize())); for (int i = 0; i < fineGrainedStats.length; i++) { - double lowerbound = Math.pow(Math.E, (double) i / (double) multiplier - - 0.5); - double upperbound = Math.pow(Math.E, (double) i / (double) multiplier - + 0.5); - - SlabCache.LOG.info("From " - + StringUtils.humanReadableInt((long) lowerbound) + "- " - + StringUtils.humanReadableInt((long) upperbound) + ": " - + StringUtils.humanReadableInt(fineGrainedStats[i].get()) - + " requests"); - + double lowerbound = Math.pow(Math.E, + ((double) i / (double) multiplier) - 0.5); + double upperbound = Math.pow(Math.E, + ((double) i / (double) multiplier) + 0.5); + + if (fineGrainedStats[i].get() > 0) { + SlabCache.LOG.info("From " + + StringUtils.humanReadableInt((long) lowerbound) + "- " + + StringUtils.humanReadableInt((long) upperbound) + ": " + + StringUtils.humanReadableInt(fineGrainedStats[i].get()) + + " requests"); + + } } } }