[ 
https://issues.apache.org/jira/browse/HDDS-14179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze updated HDDS-14179:
------------------------------
    Description: StorageVolume.getCurrentUsage() currently returns 
SpaceUsageSource, which looks like a mutable source.  However, the underlying 
implementations always return SpaceUsageSource.Fixed.  If the usages are 
mutable, we cannot sort them or use them to do computation reliably.  We need 
this for for HDDS-14175.  (was: StorageVolume.getCurrentUsage() currently 
returns SpaceUsageSource, which looks like a mutable source.  However, the 
underlying implementations always return SpaceUsageSource.Fixed.)

> StorageVolume.getCurrentUsage() should return a fixed usage
> -----------------------------------------------------------
>
>                 Key: HDDS-14179
>                 URL: https://issues.apache.org/jira/browse/HDDS-14179
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: Ozone Datanode
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>              Labels: pull-request-available
>
> StorageVolume.getCurrentUsage() currently returns SpaceUsageSource, which 
> looks like a mutable source.  However, the underlying implementations always 
> return SpaceUsageSource.Fixed.  If the usages are mutable, we cannot sort 
> them or use them to do computation reliably.  We need this for for HDDS-14175.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to