Prasad Mujumdar created SENTRY-669:
--------------------------------------

             Summary: 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
             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)

Reply via email to