Sammi Chen created HDDS-12565:
---------------------------------
Summary: VolumeUsage#hasVolumeEnoughSpace should treat
volumeFreeSpaceToSpare as reserved space
Key: HDDS-12565
URL: https://issues.apache.org/jira/browse/HDDS-12565
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Sammi Chen
Currently it's allowed to allocate space from volumeFreeSpaceToSpare.
{code:java}
public static boolean hasVolumeEnoughSpace(long volumeAvailableSpace,
long volumeCommittedBytesCount,
long requiredSpace,
long volumeFreeSpaceToSpare) {
return (volumeAvailableSpace - volumeCommittedBytesCount) >
Math.max(requiredSpace, volumeFreeSpaceToSpare);
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]