[ 
https://issues.apache.org/jira/browse/SENTRY-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anne Yu updated SENTRY-1345:
----------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

commit caa630c97438c29c8d43e345431bddd4ed3cf9ef
Author: hahao <[email protected]>
Date:   Tue Jun 21 13:23:50 2016 -0700

    SENTRY-1345: ACLS on table folder disappear after insert for unpartitioned 
tables (Sravya Tirukkovalur, Reviewed by: Hao Hao and Anne Yu)

    Change-Id: I716000e5e49714169e87c8d3ffcef9ae3da8a796

> ACLS on table folder disappear after insert for unpartitioned tables
> --------------------------------------------------------------------
>
>                 Key: SENTRY-1345
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1345
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>            Reporter: Sravya Tirukkovalur
>            Assignee: Sravya Tirukkovalur
>             Fix For: 1.8.0
>
>         Attachments: SENTRY-1345.patch
>
>
> This seems to be due to the fact that onAlterTableEvent is being trigged for 
> this operation of "INSERT on a unpartitioned table" in Hive. And sentry- hive 
> plugin thinks this is an alter table location command, and we add the new 
> path and delete the old path for this Hive object. As add happens first and 
> then the delete on the same path in this case, the path is lost resulting in 
> no acls on this path. 
> Workaround: This gets corrected at the next HMS restart. 
> We can fix on Sentry side to not do add/delete if oldPath == newPath. But we 
> also need to understand the Hive behavior.
> Not exactly sure when this regressed as we dont seem to have coverage for it. 
> Also adding a test case as part of the patch which can be used against older 
> versions.



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

Reply via email to