peterxcli commented on PR #8090: URL: https://github.com/apache/ozone/pull/8090#issuecomment-2731877331
@ChenSammi Thanks for heads up. > which is the core part to preventing space over allocation. > > ` Further, VolumeChoosingPolicy#chooseVolume, its Java Doc says "The implementations of this interface must be thread-safe.", regarding the space full check and space reservation, it can be done as an atomic operation in the chooseVolume internally, so that there will no over allocation of space due to concurrent container creation and container import.` I think that requires: [HDDS-12556. Use closable handle to allocate and release committed bytes](https://issues.apache.org/jira/browse/HDDS-12556), as currently VolumeChoosingPolicy just select and return a volume, and the real allocate part isn't its scope. Making it synchronize would just prevent race condition on the volumeList. -- 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]
