ChenSammi commented on code in PR #8090:
URL: https://github.com/apache/ozone/pull/8090#discussion_r2009455689
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/ContainerImporter.java:
##########
@@ -123,6 +114,13 @@ public void importContainer(long containerID, Path
tarFilePath,
containerData = getKeyValueContainerData(containerDescriptorYaml);
}
ContainerUtils.verifyChecksum(containerData, conf);
+
+ HddsVolume targetVolume = hddsVolume;
+ if (targetVolume == null) {
+ targetVolume = chooseNextVolume();
+ }
+
+ containerData.setCommittedSpace(true);
Review Comment:
ContainerImporter#chooseNextVolume are called by three functions, here is
one place, there are other two places.
--
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]