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

Prasad Mujumdar commented on SENTRY-669:
----------------------------------------

+1


> Drop database Hive statement removes the DB privileges even if the operation 
> fails
> ----------------------------------------------------------------------------------
>
>                 Key: SENTRY-669
>                 URL: https://issues.apache.org/jira/browse/SENTRY-669
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Prasad Mujumdar
>            Assignee: Ryan P
>              Labels: newbie
>             Fix For: 1.5.0
>
>         Attachments: SENTRY-669.patch
>
>
> Sentry Hive binding clears the privileges when a DB object is dropped. This 
> is triggered from the metastore post listener.
> The Sentry metastore listener verifies the operation status before executing 
> the cleanup. However in case of drop database, it's incorrectly attempted 
> twice and one of it happens before checking the operation status.
> We need to remove the 
> SentryMetastorePostEventListener:dropSentryDbPrivileges() call which is 
> executes before checking status.



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

Reply via email to