[
https://issues.apache.org/jira/browse/HBASE-21893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17024593#comment-17024593
]
Xu Cang edited comment on HBASE-21893 at 1/27/20 7:23 PM:
----------------------------------------------------------
[~a00408367]
Archived file will be deleted after TTL. (setting is this :
hbase.master.hfilecleaner.ttl , The period (in milliseconds) to keep store
files in the archive folder before deleting them from the file system)
I think the question comes down to if Quota should take archived file into
account. If so, there is nothing wrong with above behavior.
By reading https://issues.apache.org/jira/browse/HBASE-18135 , seems this is by
design.
was (Author: xucang):
[~a00408367]
Archived file will be deleted after TTL. (setting is this :
hbase.master.hfilecleaner.ttl , The period (in milliseconds) to keep store
files in the archive folder before deleting them from the file system)
I think the question comes down to if Quota should take archived file into
account. If so, there is nothing wrong with above behavior.
> Space quota: Usage is not calculated correctly if snapshot is created on a
> table then table is deleted and created again
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-21893
> URL: https://issues.apache.org/jira/browse/HBASE-21893
> Project: HBase
> Issue Type: Bug
> Reporter: Ajeet Rai
> Priority: Minor
> Labels: Quota, Space
>
> *Steps to reproduce:*
> 1: ./hbase pe --table="bugatti" --nomapred --rows=400 sequentialWrite 10
> (will put 4 mb data)
> 2: set_quota TYPE => SPACE, TABLE => 'bugatti', LIMIT => '7M', POLICY =>
> NO_WRITES_COMPACTIONS
> 3: snapshot 'bugatti','bugatti_snapshot'
> 4: disable 'bugatti'
> 5: drop 'bugatti'
> 6: create 'bugatti','info0'
> 7: set_quota TYPE => SPACE, TABLE => 'bugatti', LIMIT => '5M', POLICY =>
> NO_WRITES_COMPACTIONS
> 8: scan 'bugatti'
> >> Observe that no data here and original snapshot size was 4 MB. but current
> >> usage is shown as 8 MB
--
This message was sent by Atlassian Jira
(v8.3.4#803005)