Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-23967

Improve the accuracy of the method sizeToString

    XMLWordPrintableJSON

    Details

    • 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

      Description

      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
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xu qinya xuqinya
                Reporter:
                xu qinya xuqinya
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: