[ https://issues.apache.org/jira/browse/HBASE-20602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16482164#comment-16482164 ]
Anoop Sam John commented on HBASE-20602: ---------------------------------------- Once dropped the table, create the same once more and then do a listing of quotas? You see it back? BTW, In the steps seems we create a quota on 't1' first before even creating it. We don't have any check, while adding a quota, whether the table really exists or not!! > hbase.master.quota.observer.ignore property seems to be not taking effect > ------------------------------------------------------------------------- > > Key: HBASE-20602 > URL: https://issues.apache.org/jira/browse/HBASE-20602 > Project: HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 2.0.0 > Reporter: Biju Nair > Priority: Major > > From [doc|https://hbase.apache.org/book.html#ops.space.quota.deletion] > 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}} > {noformat} > <property> > <name>hbase.master.quota.observer.ignore</name> > <value>true</value> > </property>{noformat} > * Through {{hbase}} shell > * > {noformat} > hbase(main):003:0> set_quota TYPE => SPACE, TABLE => 't1', LIMIT => '1G', > POLICY => NO_INSERTS > Took 0.0317 seconds{noformat} > * > {noformat} > hbase(main):005:0> create 't1','cf1' > Created table t1 > Took 0.7904 seconds{noformat} > * > {noformat} > hbase(main):006:0> list_quotas > OWNER QUOTAS > TABLE => t1 TYPE => SPACE, TABLE => t1, LIMIT => 1073741824, VIOLATION_POLICY > => NO_INSERTS > 1 row(s){noformat} > * > {noformat} > 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{noformat} > * > {noformat} > hbase(main):009:0> drop 't1' > Took 0.1407 seconds{noformat} > * > {noformat} > hbase(main):010:0> list_quotas > OWNER QUOTAS > 0 row(s) > Took 0.0307 seconds{noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)