You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sammi Chen (Jira)" <ji...@apache.org> on 2025/03/12 08:42:00 UTC
[jira] [Created] (HDDS-12565) VolumeUsage#hasVolumeEnoughSpace should treat volumeFreeSpaceToSpare as reserved space
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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org