update logs

This commit is contained in:
guluo 2023-06-02 23:12:56 +08:00
parent c43d660d2b
commit de292d09fc
1 changed files with 2 additions and 3 deletions

View File

@ -4156,9 +4156,8 @@ public class HMaster extends HBaseServerBase<MasterRpcServices> implements Maste
}
RegionMetrics regionMetrics = sl.getRegionMetrics().get(regionInfo.getRegionName());
if (regionMetrics == null) {
LOG.warn(String.format(
"Can not get compaction details for the region: %s , it may be not online.",
regionInfo.getRegionNameAsString()));
LOG.warn("Can not get compaction details for the region: {} , it may be not online.",
regionInfo.getRegionNameAsString());
continue;
}
if (regionMetrics.getCompactionState() == CompactionState.MAJOR) {