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

Having RPC quota, Not completely deleted SPACE quota

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.0.2
    • None
    • None
    • None

    Description

      When RPC quota and SPACE quota are set , only the SPACE quota is cancelled, and the SPACE quota information cannot be deleted completely in hbase:quota. And new quotas cannot be updated.

      set_quota TYPE => SPACE, NAMESPACE => 'ns1', LIMIT => '50T', POLICY => NO_WRITES
      Took 0.0288 seconds
      
      set_quota TYPE => THROTTLE, NAMESPACE => 'ns1', LIMIT => '10req/sec'
      Took 0.0238 seconds
      
      list_quotas
      OWNER  QUOTAS
       NAMESPACE => ns1 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_NUMBER, LIMIT => 10req/sec, SCOPE => MACHINE
       NAMESPACE => ns1 TYPE => SPACE, NAMESPACE => ns1, LIMIT => 54975581388800, VIOLATION_POLICY => NO_WRITES
      2 row(s)
      Took 0.0349 seconds
      
      set_quota TYPE => SPACE, NAMESPACE => 'ns1', LIMIT => NONE
      Took 0.0169 seconds
      
      list_quotas
      OWNER  QUOTAS
       NAMESPACE => ns1 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_NUMBER, LIMIT => 10req/sec, SCOPE => MACHINE
       NAMESPACE => ns1 TYPE => SPACE, NAMESPACE => ns1, REMOVE => true
      2 row(s)
      Took 0.0407 seconds
      
      list_quotas
      OWNER  QUOTAS
       NAMESPACE => ns1 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_NUMBER, LIMIT => 10req/sec, SCOPE => MACHINE
       NAMESPACE => ns1 TYPE => SPACE, NAMESPACE => ns1, REMOVE => true
      2 row(s)
      Took 0.0313 seconds
      
      set_quota TYPE => SPACE, NAMESPACE => 'ns1', LIMIT => '50T', POLICY => NO_WRITES
      Took 0.0086 seconds
      
      list_quotas
      OWNER  QUOTAS
       NAMESPACE => ns1 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_NUMBER, LIMIT => 10req/sec, SCOPE => MACHINE
       NAMESPACE => ns1 TYPE => SPACE, NAMESPACE => ns1, REMOVE => true
      2 row(s)
      Took 0.0303 seconds
      

      When we remove the SPACE quota,We should delete it in hbase :quota.
      As follows:

      set_quota TYPE => SPACE, NAMESPACE => 'ns1', LIMIT => '1T', POLICY => NO_WRITES
      Took 0.0186 seconds
      
      set_quota TYPE => THROTTLE, NAMESPACE => 'ns1', LIMIT => '10req/sec'
      Took 0.0191 seconds
      
      list_quotas
      OWNER  QUOTAS
       NAMESPACE => ns1 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_NUMBER, LIMIT => 10req/sec, SCOPE => MACHINE
       NAMESPACE => ns1 TYPE => SPACE, NAMESPACE => ns1, LIMIT => 1099511627776, VIOLATION_POLICY => NO_WRITES
      2 row(s)
      Took 0.0332 seconds
      
      set_quota TYPE => SPACE, NAMESPACE => 'ns1', LIMIT => NONE
      Took 0.0131 seconds
      
      list_quotas
      OWNER  QUOTAS
       NAMESPACE => ns1 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_NUMBER, LIMIT => 10req/sec, SCOPE => MACHINE
      1 row(s)
      Took 0.0306 seconds
      
      set_quota TYPE => SPACE, NAMESPACE => 'ns1', LIMIT => '50T', POLICY => NO_WRITES
      Took 0.0183 seconds
      
      list_quotas
      OWNER  QUOTAS
       NAMESPACE => ns1 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_NUMBER, LIMIT => 10req/sec, SCOPE => MACHINE
       NAMESPACE => ns1 TYPE => SPACE, NAMESPACE => ns1, LIMIT => 54975581388800, VIOLATION_POLICY => NO_WRITES
      2 row(s)
      Took 0.0332 seconds
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: