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

hbase.master.quota.observer.ignore property seems to be not taking effect

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      From doc setting hbase.master.quota.observer.ignore property to true will retain the space quota even after table is deleted. But doesn't seem to be the case i.e. whether the property is not defined which sets the value to false or set the property to true in site.xml, the quota gets removed when the corresponding table is dropped. Will verify whether it works in 1.x. Did a grep on the master source, did get a hit on the property in code.

      Steps to reproduce

      • Add this property and restart hbase
            <property>
                <name>hbase.master.quota.observer.ignore</name>
                <value>true</value>
            </property>
      • Through hbase shell
      • hbase(main):003:0> set_quota TYPE => SPACE, TABLE => 't1', LIMIT => '1G', POLICY => NO_INSERTS
        Took 0.0317 seconds
      • hbase(main):005:0> create 't1','cf1'
        Created table t1
        Took 0.7904 seconds
      • hbase(main):006:0> list_quotas
        OWNER QUOTAS
        TABLE => t1 TYPE => SPACE, TABLE => t1, LIMIT => 1073741824, VIOLATION_POLICY => NO_INSERTS
        1 row(s)
      • hbase(main):007:0> disable 't1'
        Took 0.4909 seconds
        hbase(main):008:0> list_quotas
        OWNER QUOTAS
        TABLE => t1 TYPE => SPACE, TABLE => t1, LIMIT => 1073741824, VIOLATION_POLICY => NO_INSERTS
        1 row(s)
        Took 0.0420 seconds
      • hbase(main):009:0> drop 't1'
        Took 0.1407 seconds
      • hbase(main):010:0> list_quotas
        OWNER QUOTAS
        0 row(s)
        Took 0.0307 seconds

      Attachments

        1. HBASE-20602.patch
          1 kB
          Biju Nair

        Activity

          People

            gsbiju Biju Nair
            gsbiju Biju Nair
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: