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

Anne Yu commented on SENTRY-1275:
---------------------------------

[~sravya], I could add a unit test to see.

> if drop external partition fails at the step of move external dir to the 
> trash, but partition gets dropped successfully, sentry acls are still applied 
> to the dir
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SENTRY-1275
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1275
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Anne Yu
>
> Found out there is an issue when drop external partition fails at the last 
> step of move dir to trash, partition gets successfully dropped, but sentry 
> acls still applied to the dir.
> {code}
> alter table 1008_tbl add partition (i=3) location '/data/test1/1008_par1';
> alter table 1008_tbl drop partition (i=3);
> Error: Error while processing statement: FAILED: Execution Error, return code 
> 1 from org.apache.hadoop.hive.ql.exec.SentryFilterDDLTask. Got exception: 
> java.io.IOException Failed to move to trash: 
> hdfs://nameservice1/data/test1/1008_par1 (state=08S01,code=1)
> show partitions 1008_tbl; (i=3 not shown)
> sudo -u hdfs hdfs dfs -getfacl -R /data/test1/1008_par1
> # file: /data/test1/1008_par1
> # owner: hive
> # group: hive
> user::rwx
> user:hive:rwx
> group:hbase:rwx (sentry applied extended acls)
> group::---
> group:hive:rwx
> mask::rwx
> other::--x
> {code} 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to