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

Anoop Sam John commented on HBASE-22578:
----------------------------------------

So you mean that for this feature, you will create an archive directory even 
before it would have been really needed.  And we need to keep that dir as is 
because those are having ACLs been applied now.  We dont want to loose those 
ACLs.  So the cleaner should not clear them at any point in time.
Which path the data files are getting archived?  When we delete a file (once 
compacted away), 1st we archive that and later the cleaner cleans this. So 
there after the file is cleaned by the cleaner, if no  more files, the dir also 
getting cleaned now? Did not check the code. So asking.

> HFileCleaner should not delete empty ns/table directories used for user san 
> snapshot feature
> --------------------------------------------------------------------------------------------
>
>                 Key: HBASE-22578
>                 URL: https://issues.apache.org/jira/browse/HBASE-22578
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Yi Mei
>            Priority: Major
>
> HBASE-21995 add a coprocessor to set HDFS acls for HBase users who own HBase 
> read permission to mask users have the ability to scan snapshot directly.
> It creates empty directories for namespace and table under archive directory 
> and set HDFS acls to these directories after namespace or table is created, 
> in this way, users can read files under archive directory.
> But the HFileCleaner will delete empty directories and this will break this 
> feature. So if the user scan snapshot feature is enabled, HFileCleaner should 
> not delete empty ns/table directories.



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

Reply via email to