guihecheng commented on code in PR #3292:
URL: https://github.com/apache/ozone/pull/3292#discussion_r848280815
##########
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:
Actually we don't have to, because here we have the check above that
`hddsFiles.length == 1`, so we are sure that this `HddsVolume` is fresh.
--
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]