From 999801adad653471bcde0523c109e73e83e05280 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 (cherry picked from commit 12a9e6e5ec7e3c86b60ae818d736b9f83fb69604) Conflicts: hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ConstantSizeRegionSplitPolicy.java --- .../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 7d5f53a70d75..e0d7627a9298 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 @@ protected final boolean isExceedSize(long sizeToCheck) { 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 @@ protected final boolean isExceedSize(long sizeToCheck) { 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; }