[
https://issues.apache.org/jira/browse/HBASE-20602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Biju Nair updated HBASE-20602:
------------------------------
Description:
>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}
was:
>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 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}
> hbase.master.quota.observer.ignore property seems to be 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)