You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2024/06/07 17:15:00 UTC

[jira] [Created] (HDDS-10988) Let zero OzoneQuota use byte as unit

Attila Doroszlai created HDDS-10988:
---------------------------------------

             Summary: 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


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