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

Sakthi commented on HBASE-22086:
--------------------------------

Was able to repro. Thanks for providing the steps to repro. 

As list_snapshots doesn't list out any existing snapshots, nothing is written 
to the quota table. But the thing is we never delete the entry from the quota 
table. So I think as we always have the existing snapshots using list_snapshots 
& that we rely on computing the size of the list of snapshots we list out 
everytime and then re-writing it in the quota table, so it would be wise to 
remove any existing snapshots entry from the quota table and have our updated 
puts do the job for us. 

Will work on the patch and UT. Thanks [~a00408367]. Ping [~elserj].

> space quota issue: deleting snapshot doesn't update the usage of table
> ----------------------------------------------------------------------
>
>                 Key: HBASE-22086
>                 URL: https://issues.apache.org/jira/browse/HBASE-22086
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ajeet Rai
>            Assignee: Sakthi
>            Priority: Minor
>
> space quota issue: deleting snapshot doesn't update the usage of table
> Steps: 1:
> set_quota TYPE => SPACE, TABLE => 'bugatti', LIMIT => '7M', POLICY => 
> NO_WRITES_COMPACTIONS
> 2: ./hbase pe --table="bugatti" --nomapred --rows=200 sequentialWrite 10
> 3: ./hbase pe --table="bugatti" --nomapred --rows=200 sequentialWrite 10
> 4: snapshot 'bugatti','bugatti_snapshot'
> 5: ./hbase pe --table="bugatti" --nomapred --rows=200 sequentialWrite 10
> 6: major_compact 'bugatti'
> 7: delete_snapshot 'bugatti_snapshot'
> now check the usage and observe that it is not getting updated.



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

Reply via email to