Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-669

Drop database Hive statement removes the DB privileges even if the operation fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • None

    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.

      Attachments

        1. SENTRY-669.patch
          0.9 kB
          Ryan P

        Activity

          People

            Ryan P Ryan P
            prasadm Prasad Suresh Mujumdar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: