sadanand48 commented on code in PR #7830:
URL: https://github.com/apache/ozone/pull/7830#discussion_r1948508718


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/MutableVolumeSet.java:
##########
@@ -220,12 +220,16 @@ public void checkAllVolumes(StorageVolumeChecker checker)
     Set<? extends StorageVolume> failedVolumes;
     try {
       failedVolumes = checker.checkAllVolumes(allVolumes);
+      if (failedVolumes.size() > 0) {
+        LOG.warn("checkAllVolumes got {} failed volumes - {}",
+            failedVolumes.size(), failedVolumes);
+      }
     } catch (InterruptedException e) {
       Thread.currentThread().interrupt();
       throw new IOException("Interrupted while running disk check", e);
     }
 
-    if (failedVolumes.size() > 0) {
+    if (failedVolumeMap.size() > 0 || failedVolumes.size() > 0) {

Review Comment:
   We would be printing same log line twice here. also why are we checking 
`failedVolumeMap` but printing 'failedVolumes'



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