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. (#4481)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 12a9e6e)
  • Loading branch information
liuzhuang2017 authored and Apache9 committed Jun 6, 2022
1 parent 8139cf6 commit 19f67d2
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 19f67d2

Please sign in to comment.