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


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainer.java:
##########
@@ -169,6 +169,7 @@ public void create(VolumeSet volumeSet, VolumeChoosingPolicy
           String hddsVolumeDir = containerVolume.getHddsRootDir().toString();
           // Set volume before getContainerDBFile(), because we may need the
           // volume to deduce the db file.
+          containerData.setCommittedSpace(true);

Review Comment:
   Once the volume is selected, and container creation fails, we should release 
the committed space. 



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