HBASE-27080 Optimize debug output log of ConstantSizeRegionSplitPolicy class. (#4481)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 12a9e6e5ec
)
Conflicts:
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ConstantSizeRegionSplitPolicy.java
This commit is contained in:
parent
976dbe8b2b
commit
999801adad
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue