Description
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.