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

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

Have attached the patch [~Apache9]. The issue was that the existing other tests 
in the class weren't cleaning up the snapshotSizes from the QuotaTableUtil and 
hence the failure in the testDeleteSnapshots during initial phase itself. Have 
added cleanup steps in the other 2 functions. The tests pass now.

Will work for patch on other branches as well.

> 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
>              Labels: Quota, space
>             Fix For: 3.0.0
>
>         Attachments: hbase-22086.addendum.patch, 
> hbase-22086.master.001.patch, hbase-22086.master.002.patch, 
> hbase-22086.master.003.patch, hbase-22086.master.004.patch
>
>
> 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