Skip to content

Commit

Permalink
HBASE-27080 Optimize debug output log of ConstantSizeRegionSplitPolic…
Browse files Browse the repository at this point in the history
…y class. (apache#4481)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
liuzhuang2017 authored and wenwj0 committed Jun 14, 2022
1 parent f0cbbc7 commit 26e0416
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ 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;
}
} else {
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;
}
Expand Down

0 comments on commit 26e0416

Please sign in to comment.