[
https://issues.apache.org/jira/browse/SENTRY-1644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hao Hao updated SENTRY-1644:
----------------------------
Description:
After rename Hive table with partitions, ACLs on the partition paths disappear.
It can be reproducible by:
* Create a table with partitions.
* Rename the table.
* The granted ACLs on the partitions disappear.
Furthermore, in TestHMSPaths.testRenameDiffPaths add the following checking:
{noformat}
String partition2Path = "/user/hive/warehouse/db1.db/table2/part1";
Assert.assertEquals(expectedSet,
paths.findAuthzObject(HMSPaths.getPathElements(partition2Path).toArray(new
String[0])));
{noformat}
It will evaluate to false, which means after rename, the path of the table
partition disappear.
was:
After rename Hive table with partitions, ACLs still remain the same for the old
partition paths.
It can be reproducible by:
* Create a table with partitions.
* Alter the table location
* Check the ACLs on the partitions old path, it will remain the same.
> After rename Hive table with partitions, ACLs disappear for partitions
> ----------------------------------------------------------------------
>
> Key: SENTRY-1644
> URL: https://issues.apache.org/jira/browse/SENTRY-1644
> Project: Sentry
> Issue Type: Bug
> Components: Hdfs Plugin
> Affects Versions: 1.7.0, 1.8.0, sentry-ha-redesign
> Reporter: Hao Hao
> Assignee: Lei (Eddy) Xu
>
> After rename Hive table with partitions, ACLs on the partition paths
> disappear.
> It can be reproducible by:
> * Create a table with partitions.
> * Rename the table.
> * The granted ACLs on the partitions disappear.
> Furthermore, in TestHMSPaths.testRenameDiffPaths add the following checking:
> {noformat}
> String partition2Path = "/user/hive/warehouse/db1.db/table2/part1";
> Assert.assertEquals(expectedSet,
> paths.findAuthzObject(HMSPaths.getPathElements(partition2Path).toArray(new
> String[0])));
> {noformat}
> It will evaluate to false, which means after rename, the path of the table
> partition disappear.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)