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

Attila Doroszlai updated HDDS-10988:
------------------------------------
    Fix Version/s: 1.5.0
       Resolution: Implemented
           Status: Resolved  (was: Patch Available)

> 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
>             Fix For: 1.5.0
>
>
> 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-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to