Skip to content

Commit a28e4b0

Browse files
committed
The log level cannot be used as a judgment condition for obtaining the configuration from tableDescriptor
1 parent e22f8c4 commit a28e4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/master/normalizer/SimpleRegionNormalizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private double getAverageRegionSizeMb(final List<RegionInfo> tableRegions) {
263263
double avgRegionSize;
264264
try {
265265
TableDescriptor tableDescriptor = masterServices.getTableDescriptors().get(table);
266-
if (tableDescriptor != null && LOG.isDebugEnabled()) {
266+
if (tableDescriptor != null) {
267267
targetRegionCount = tableDescriptor.getNormalizerTargetRegionCount();
268268
targetRegionSize = tableDescriptor.getNormalizerTargetRegionSize();
269269
LOG.debug("Table {} configured with target region count {}, target region size {}", table,

0 commit comments

Comments
 (0)