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)

Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ConstantSizeRegionSplitPolicy.java
  • Loading branch information
liuzhuang2017 authored and Apache9 committed Jun 6, 2022
1 parent 976dbe8 commit 999801a
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 999801a

Please sign in to comment.