[ 
https://issues.apache.org/jira/browse/HBASE-20885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16560095#comment-16560095
 ] 

Sakthi commented on HBASE-20885:
--------------------------------

[~elserj], FYI. I am yet to figure out why this happens but in the course of 
that, I saw few issues (HBASE-20813 & HBASE-20885) and decided to work upon 
these first. But, Once these 2 issues are solved, HBASE-20705(which is the 
parent issue) resolves. i.e. making sure that removal of table/namespace 
removes the RPC quotas as well & removal of the empty row after removal of an 
rpc quota automatically seemed to resolve HBASE-20705. I tested that myself.
{noformat}
hbase(main):001:0> create 't2','cf1'
Created table t2
Took 1.0745 seconds
=> Hbase::Table - t2
hbase(main):002:0> set_quota TYPE => THROTTLE, TABLE => 't2', LIMIT => '10M/sec'
Took 0.0328 seconds
hbase(main):003:0> list_quotas
OWNER                                          QUOTAS
 TABLE => t2                                   TYPE => THROTTLE, THROTTLE_TYPE 
=> REQUEST_SIZE, LIMIT => 10M/sec, SCOPE => MACHINE
1 row(s)
Took 0.1078 seconds
hbase(main):004:0> scan 'hbase:quota'
ROW                                            COLUMN+CELL
 t.t2                                          column=q:s, 
timestamp=1532714834471, value=PBUF\x12\x0B\x12\x09\x08\x04\x10\x80\x80\x80\x05 
\x02
1 row(s)
Took 0.0301 seconds
hbase(main):005:0> set_quota TYPE => THROTTLE, TABLE => 't2', LIMIT => 'NONE'
Took 0.0066 seconds
hbase(main):006:0> list_quotas
OWNER                                          QUOTAS
0 row(s)
Took 0.0248 seconds
hbase(main):007:0> scan 'hbase:quota'
ROW                                            COLUMN+CELL
 t.t2                                          column=q:s, 
timestamp=1532714855300, value=PBUF\x12\x00
1 row(s)
Took 0.0034 seconds
hbase(main):008:0> set_quota TYPE => SPACE, TABLE => 't2', LIMIT => '1G', 
POLICY => NO_WRITES
Took 0.0145 seconds
hbase(main):009:0> list_quotas
OWNER                                          QUOTAS
 TABLE => t2                                   TYPE => SPACE, TABLE => t2, 
LIMIT => 1073741824, VIOLATION_POLICY => NO_WRITES
1 row(s)
Took 0.0340 seconds
hbase(main):010:0> scan 'hbase:quota'
ROW                                            COLUMN+CELL
 t.t2                                          column=q:s, 
timestamp=1532714870451, 
value=PBUF\x12\x00\x1A\x08\x08\x80\x80\x80\x80\x04\x10\x03
1 row(s)
Took 0.0045 seconds
hbase(main):011:0> set_quota TYPE => SPACE, TABLE => 't2', LIMIT => 'NONE', 
POLICY => NO_WRITES
Took 0.0075 seconds
hbase(main):012:0> list_quotas
OWNER                                          QUOTAS
 TABLE => t2                                   TYPE => SPACE, TABLE => t2, 
REMOVE => true
1 row(s)
Took 0.0353 seconds
hbase(main):013:0> scan 'hbase:quota'
ROW                                            COLUMN+CELL
 t.t2                                          column=q:s, 
timestamp=1532714887189, value=PBUF\x12\x00\x1A\x02\x18\x01
1 row(s)
{noformat}

> Remove entry for RPC quota from hbase:quota when RPC quota is removed.
> ----------------------------------------------------------------------
>
>                 Key: HBASE-20885
>                 URL: https://issues.apache.org/jira/browse/HBASE-20885
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Sakthi
>            Assignee: Sakthi
>            Priority: Minor
>         Attachments: hbase-20885.master.001.patch, 
> hbase-20885.master.002.patch, hbase-20885.master.003.patch
>
>
> When a RPC quota is removed (using LIMIT => 'NONE'), the entry from 
> hbase:quota table is not completely removed. For e.g. see below:
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to