You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "xuqinya (Jira)" <ji...@apache.org> on 2020/03/11 10:09:00 UTC
[jira] [Created] (HBASE-23967) Improve the accuracy of the method
sizeToString
xuqinya created HBASE-23967:
-------------------------------
Summary: Improve the accuracy of the method sizeToString
Key: HBASE-23967
URL: https://issues.apache.org/jira/browse/HBASE-23967
Project: HBase
Issue Type: Improvement
Affects Versions: master
Reporter: xuqinya
Assignee: xuqinya
In QuotaSettings,the method of sizeToString reserved integer. But, this is not very accurate.
{code:java}
hbase(main):001:0> set_quota TYPE => SPACE, TABLE => 't1', LIMIT => '2000G', POLICY => NO_INSERTS
hbase(main):002:0> list_quotas
OWNER QUOTAS
TABLE => t1 TYPE => SPACE, TABLE => t1, LIMIT => 1T, VIOLATION_POLICY => NO_INSERTS
1 row(s) in 0.0340 seconds
{code}
after patch:
{code:java}
hbase(main):001:0> set_quota TYPE => SPACE, TABLE => 't1', LIMIT => '2000G', POLICY => NO_INSERTS
hbase(main):002:0> list_quotas
OWNER QUOTAS
TABLE => t1 TYPE => SPACE, TABLE => t1, LIMIT => 1.95T, VIOLATION_POLICY => NO_INSERTS
1 row(s) in 0.0230 seconds
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)