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

Fix dbprovider test failures when run on a real cluster or setMetastoreListener = true, when db/tab gets recreated their associated privileges will be deleted.

    XMLWordPrintableJSON

    Details

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

      Description

      There are a couple of tests fail because they create db(table) /grant privileges, then drop/recreate db(table), when run on real clusters or setMetastoreListener = true, these privileges will be deleted. These tests are located in:

      org.apache.sentry.tests.e2e.dbprovider.TestDbUriPermissions.testAlterTableLocationPrivileges
      org.apache.sentry.tests.e2e.dbprovider.TestColumnEndToEnd.testBasic
      org.apache.sentry.tests.e2e.dbprovider.TestDbPrivilegesAtDatabaseScope.testUseDbPrivilege
      org.apache.sentry.tests.e2e.dbprovider.TestDbRuntimeMetadataRetrieval.testShowTables3
      org.apache.sentry.tests.e2e.dbprovider.TestDbRuntimeMetadataRetrieval.testShowTablesExtended
      org.apache.sentry.tests.e2e.dbprovider.TestDbRuntimeMetadataRetrieval.testShowTables1
      org.apache.sentry.tests.e2e.dbprovider.TestDbSandboxOps.testNegativeUserDMLPrivileges
      org.apache.sentry.tests.e2e.dbprovider.TestDbSandboxOps.testNegUserPrivilegesAll
      org.apache.sentry.tests.e2e.dbprovider.TestDbSandboxOps.testSandboxOpt13
      org.apache.sentry.tests.e2e.dbprovider.TestDbSandboxOps.testSandboxOpt10
      org.apache.sentry.tests.e2e.dbprovider.TestDbUriPermissions.testLoadPrivileges

        Attachments

        1. SENTRY-850-0.patch
          50 kB
          Anne Yu
        2. SENTRY-850-1.patch
          72 kB
          Anne Yu
        3. SENTRY-850-2.patch
          76 kB
          Anne Yu
        4. SENTRY-850-3.patch
          82 kB
          Anne Yu

          Issue Links

            Activity

              People

              • Assignee:
                anneyu Anne Yu
                Reporter:
                anneyu Anne Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: