You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/06/07 19:22:00 UTC
[jira] [Updated] (HDDS-10988) Let zero OzoneQuota use byte as unit
[ https://issues.apache.org/jira/browse/HDDS-10988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HDDS-10988:
----------------------------------
Labels: pull-request-available (was: )
> Let zero OzoneQuota use byte as unit
> ------------------------------------
>
> Key: HDDS-10988
> URL: https://issues.apache.org/jira/browse/HDDS-10988
> Project: Apache Ozone
> Issue Type: Improvement
> Components: Ozone Manager
> Reporter: Tsz-wo Sze
> Assignee: Attila Doroszlai
> Priority: Minor
> Labels: pull-request-available
>
> Just found that {{valueOf(0)}} will use {{EB}}. (Fortunately, we added {{EB}}; otherwise, it becomes an {{ArrayIndexOutOfBoundsException}}). Not a big deal, although we probably should fix it.
> {code}
> public static void main(String[] args) {
> final RawQuotaInBytes q = RawQuotaInBytes.valueOf(0);
> System.out.println("q = " + q);
> }
> // q = 0 EB
> {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