-
Type:
Improvement
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.0.0-alpha-1, 2.3.0, 1.7.0, 2.1.10, 2.2.5
-
Component/s: None
-
Labels:None
-
Hadoop Flags:Reviewed
In QuotaSettings,the method of sizeToString reserved integer. But, this is not very accurate.
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
after patch:
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
- links to