xuqinya1 opened a new pull request #1273: HBASE-23967 Improve the accuracy of 
the method sizeToString
URL: https://github.com/apache/hbase/pull/1273
 
 
   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`
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to