ChenSammi commented on code in PR #3292:
URL: https://github.com/apache/ozone/pull/3292#discussion_r848231053


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/utils/HddsVolumeUtil.java:
##########
@@ -215,6 +227,17 @@ public static boolean checkVolume(HddsVolume hddsVolume, 
String scmId,
         logger.error("Unable to create ID directory {} for datanode.", idDir);
         return false;
       }
+
+      if (VersionedDatanodeFeatures.SchemaV3.chooseSchemaVersion()
+          .equals(OzoneConsts.SCHEMA_V3)) {

Review Comment:
   Add a check that hddsVolume.setDbParentDir is set to avoid duplicate rockdb 
initialization. 



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