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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: