You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Prasad Mujumdar (JIRA)" <ji...@apache.org> on 2015/03/11 17:21:38 UTC
[jira] [Created] (SENTRY-669) Drop database Hive statement removes
the DB privileges even if the operation fails
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)