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


##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/datanode/container/ContainerCommands.java:
##########
@@ -175,6 +176,12 @@ private String getClusterId(String storageDir) throws 
IOException {
   private String getDatanodeUUID(String storageDir, ConfigurationSource config)
       throws IOException {
 
+    File storageDirPath = new File(storageDir);

Review Comment:
   this only validates the firstStorageDir according to the caller. 
   Additionally you can log the value defined for` hdds.datanode.dir` and 
validate each path, log an error if any path does not exist



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