siddhantsangwan commented on a change in pull request #2695:
URL: https://github.com/apache/ozone/pull/2695#discussion_r719624864
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java
##########
@@ -818,6 +818,9 @@ protected String
getSCMAddresses(List<StorageContainerManager> scms) {
Path dir = Paths.get(datanodeBaseDir, "data-" + j, "containers");
Files.createDirectories(dir);
dataDirs.add(dir.toString());
+ datanodeReservedSpace.ifPresent(
+ s -> dnConf.set(ScmConfigKeys.HDDS_DATANODE_DIR_DU_RESERVED,
+ dir + ":" + s));
Review comment:
For the unit test: Is there a better way than adding a `reservedInBytes`
getter to `VolumeInfo` for testing, and then asserting its value for each
volume?
--
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]