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