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-20885

Remove entry for RPC quota from hbase:quota when RPC quota is removed.

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.2.0, 2.1.1, 2.0.2
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      When a RPC quota is removed (using LIMIT => 'NONE'), the entry from hbase:quota table is not completely removed. For e.g. see below:

      hbase(main):005:0> create 't2','cf1'
      Created table t2
      Took 0.8000 seconds
      => Hbase::Table - t2
      hbase(main):006:0> set_quota TYPE => THROTTLE, TABLE => 't2', LIMIT => '10M/sec'
      Took 0.1024 seconds
      hbase(main):007:0> list_quotas
      OWNER                          QUOTAS
       TABLE => t2                   TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_SIZE, LIMIT => 10M/sec, SCOPE => MACHINE
      1 row(s)
      Took 0.0622 seconds
      hbase(main):008:0> scan 'hbase:quota'
      ROW                            COLUMN+CELL
       t.t2                          column=q:s, timestamp=1531513014463, value=PBUF\x12\x0B\x12\x09\x08\x04\x10\x80\x80\x80
                                     \x05 \x02
      1 row(s)
      Took 0.0453 seconds
      hbase(main):009:0> set_quota TYPE => THROTTLE, TABLE => 't2', LIMIT => 'NONE'
      Took 0.0097 seconds
      hbase(main):010:0> list_quotas
      OWNER                          QUOTAS
      0 row(s)
      Took 0.0338 seconds
      hbase(main):011:0> scan 'hbase:quota'
      ROW                            COLUMN+CELL
       t.t2                          column=q:s, timestamp=1531513039505, value=PBUF\x12\x00
      1 row(s)
      Took 0.0066 seconds
      

        Attachments

        1. hbase-20885.master.005.patch
          13 kB
          Sakthi
        2. hbase-20885.master.004.patch
          13 kB
          Sakthi
        3. hbase-20885.master.003.patch
          13 kB
          Sakthi
        4. hbase-20885.master.003.patch
          13 kB
          Sakthi
        5. hbase-20885.master.002.patch
          10 kB
          Sakthi
        6. hbase-20885.master.001.patch
          11 kB
          Sakthi

          Issue Links

            Activity

              People

              • Assignee:
                sakthi Sakthi
                Reporter:
                sakthi Sakthi
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: