You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2018/06/01 00:25:00 UTC

[jira] [Updated] (HBASE-20602) hbase.master.quota.observer.ignore property seems to be not taking effect

     [ https://issues.apache.org/jira/browse/HBASE-20602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Elser updated HBASE-20602:
-------------------------------
       Resolution: Fixed
     Hadoop Flags: Reviewed
    Fix Version/s: 2.0.1
                   2.1.0
                   3.0.0
           Status: Resolved  (was: Patch Available)

> 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: documentation
>    Affects Versions: 2.0.0
>            Reporter: Biju Nair
>            Assignee: Biju Nair
>            Priority: Minor
>             Fix For: 3.0.0, 2.1.0, 2.0.1
>
>         Attachments: HBASE-20602.patch
>
>
> 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)