[
https://issues.apache.org/jira/browse/SENTRY-669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan P updated SENTRY-669:
--------------------------
Assignee: Ryan P
> 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
>
>
> 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)