ptlrs commented on code in PR #8609:
URL: https://github.com/apache/ozone/pull/8609#discussion_r2268412994


##########
hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/volume/TestVolumeSet.java:
##########
@@ -211,6 +263,11 @@ public void testShutdown() throws Exception {
       assertThat(volume.getVolumeUsage()).isPresent();
       volume.getCurrentUsage();
     }
+
+    metricsRecords = getMetrics(volumeSet.getVolumeHealthMetrics());

Review Comment:
   The metrics object is still accessible here via the MetricsRecordBuilder 
even after the shutdown. This is not the way the metrics will be accessed in 
the production path and so it should be ok to remove these checks post 
shutdown. 



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to