From 12a9e6e5ec7e3c86b60ae818d736b9f83fb69604 Mon Sep 17 00:00:00 2001 From: liuzhuang2017 <95120044+liuzhuang2017@users.noreply.github.com> Date: Mon, 6 Jun 2022 13:37:58 +0800 Subject: [PATCH] HBASE-27080 Optimize debug output log of ConstantSizeRegionSplitPolicy class. (#4481) Signed-off-by: Duo Zhang --- .../hbase/regionserver/ConstantSizeRegionSplitPolicy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ConstantSizeRegionSplitPolicy.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ConstantSizeRegionSplitPolicy.java index 608b5d3e5dc..e0d7627a929 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ConstantSizeRegionSplitPolicy.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ConstantSizeRegionSplitPolicy.java @@ -100,7 +100,7 @@ public class ConstantSizeRegionSplitPolicy extends RegionSplitPolicy { sumSize += store.getSize(); } if (sumSize > sizeToCheck) { - LOG.debug("ShouldSplit because region size is big enough " + "sumSize={}, sizeToCheck={}", + LOG.debug("Should split because region size is big enough " + "sumSize={}, sizeToCheck={}", StringUtils.humanSize(sumSize), StringUtils.humanSize(sizeToCheck)); return true; } @@ -108,7 +108,7 @@ public class ConstantSizeRegionSplitPolicy extends RegionSplitPolicy { for (HStore store : region.getStores()) { long size = store.getSize(); if (size > sizeToCheck) { - LOG.debug("ShouldSplit because {} size={}, sizeToCheck={}", store.getColumnFamilyName(), + LOG.debug("Should split because {} size={}, sizeToCheck={}", store.getColumnFamilyName(), StringUtils.humanSize(size), StringUtils.humanSize(sizeToCheck)); return true; }