HBASE-27080 Optimize debug output log of ConstantSizeRegionSplitPolicy class. (#4481)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
liuzhuang2017 2022-06-06 13:37:58 +08:00 committed by GitHub
parent 7184949cea
commit 12a9e6e5ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}