[
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: [email protected]
For additional commands, e-mail: [email protected]