Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20705 Having RPC Quota on a table prevents Space quota to be recreated/removed
  3. HBASE-20813

Remove RPC quotas when the associated table/Namespace is dropped off

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.2.0, 2.1.1, 2.0.2
    • None
    • Reviewed
    • In previous releases, when a Space Quota was configured on a table or namespace and that table or namespace was deleted, the Space Quota was also deleted. This change improves the implementation so that the same is also done for RPC Quotas.

    Description

      In short, the below scenario shouldn't be the case.

      hbase(main):023:0> create 't2','cf1'
       Created table t2
       Took 0.7405 seconds
       => Hbase::Table - t2
       hbase(main):024:0>
       hbase(main):025:0*
       hbase(main):026:0* set_quota TYPE => THROTTLE, TABLE => 't2', LIMIT => '10M/sec'
       Took 0.0082 seconds
       hbase(main):027:0> list_quotas
       OWNER QUOTAS
       TABLE => t2 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_SIZE, LIMIT => 10M/sec, SCOPE => MACHINE
       1 row(s)
       Took 0.0291 seconds
       hbase(main):028:0> scan 'hbase:quota'
       ROW COLUMN+CELL
       t.t2 column=q:s, timestamp=1530165010888, value=PBUF\x12\x0B\x12\x09\x08\x04\x10\x80\x80\x80\x05 \x02
       1 row(s)
       Took 0.0037 seconds
       hbase(main):029:0> disable 't2'
       Took 0.4328 seconds
       hbase(main):030:0> drop 't2'
       Took 0.2285 seconds
       hbase(main):031:0> list_quotas
       OWNER QUOTAS
       TABLE => t2 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_SIZE, LIMIT => 10M/sec, SCOPE => MACHINE
       1 row(s)
       Took 0.0230 seconds
       hbase(main):032:0> scan 'hbase:quota'
       ROW COLUMN+CELL
       t.t2 column=q:s, timestamp=1530165010888, value=PBUF\x12\x0B\x12\x09\x08\x04\x10\x80\x80\x80\x05 \x02
       1 row(s)
       Took 0.0038 seconds
      

      Attachments

        1. hbase-20813.master.001.patch
          20 kB
          Sakthi
        2. hbase-20813.master.002.patch
          19 kB
          Sakthi

        Issue Links

          Activity

            People

              sakthi Sakthi
              sakthi Sakthi
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: