wchevreuil commented on code in PR #5232:
URL: https://github.com/apache/hbase/pull/5232#discussion_r1211422837


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java:
##########
@@ -4155,6 +4155,11 @@ public CompactionState getCompactionState(final 
TableName tableName) {
           continue;
         }
         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.");

Review Comment:
   Please use parameterised logging.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to