diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java index 2c4e7d6a5ae..7d06840db1d 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java @@ -4156,8 +4156,9 @@ public class HMaster extends HBaseServerBase implements Maste } RegionMetrics regionMetrics = sl.getRegionMetrics().get(regionInfo.getRegionName()); if (regionMetrics == null) { - LOG.error("Can not get compaction details for the region: " - + regionInfo.getRegionNameAsString() + " , it may be not online."); + LOG.warn(String.format( + "Can not get compaction details for the region: %s , it may be not online.", + regionInfo.getRegionNameAsString())); continue; } if (regionMetrics.getCompactionState() == CompactionState.MAJOR) {