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


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java:
##########
@@ -1242,6 +1242,12 @@ private ClusterStatusProtos.ServerLoad 
buildServerLoad(long reportStartTime, lon
         });
       });
     });
+    serverLoad.setCacheFreeSize(regionServerWrapper.getBlockCacheFreeSize());
+    if (DataTieringManager.getInstance() != null) {
+      DataTieringManager.getInstance().getRegionColdDataSize()

Review Comment:
   No, DataTieringManager singleton instance cannot be null once it has been 
initialised. There's a resetForTestingOnly method, but that's for test purposes 
only. Besides, even if it was possible to disable DataTieringManager, we 
wouldn't want to use the stale instance.



-- 
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