[
https://issues.apache.org/jira/browse/HBASE-22578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16863674#comment-16863674
]
Yi Mei commented on HBASE-22578:
--------------------------------
[~reidchan] Thanks for your comments.
The empty directory is not new directory for HBase, it's
/hbase/archive/data/ns/table. The table archive directory is created when HBase
archive regions, cfs.. and a snapshot may reference hfiles under archive
directory.
In this feature, users should have the permission to access this directory when
scan snapshot. So create table archive directory after table is created, and
default and access HDFS acls can be set for this directory when grant, revoke
happens.
> 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)