You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "HonglunChen (Jira)" <ji...@apache.org> on 2020/03/10 06:29:00 UTC

[jira] [Created] (SENTRY-2552) Drop database removes the DB privileges even if the operation fails

HonglunChen created SENTRY-2552:
-----------------------------------

             Summary: Drop database removes the DB privileges even if the operation fails
                 Key: SENTRY-2552
                 URL: https://issues.apache.org/jira/browse/SENTRY-2552
             Project: Sentry
          Issue Type: Bug
          Components: Sentry
    Affects Versions: 2.2.0, 2.3.0
            Reporter: HonglunChen


Command "drop database test_db (without cascade)" runs fail, and throws exception -> InvalidOperationException(message:Database test_db is not empty. One or more tables exist.)
But DbNotificationListener will create a NotificationEvent, then the privileges on test_db will be removed.
So should Sentry implement its own NotificationListener and check Event.getStatus before creating a NotificationEvent?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)