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

Partition ACLs disappear after renaming Hive table with partitions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.0, 1.8.0, 2.0.0
    • Fix Version/s: 1.8.0, 2.0.0
    • Component/s: Hdfs Plugin
    • Labels:
      None

      Description

      After rename Hive table with partitions, ACLs on the partition paths disappear.

      It can be reproducible by:

      • Create a table with partitions.
      • Rename the table.
      • The granted ACLs on the partitions disappear.

      Furthermore, in TestHMSPaths.testRenameDiffPaths add the following checking:

       String partition2Path = "/user/hive/warehouse/db1.db/table2/part1";
       Assert.assertEquals(expectedSet, paths.findAuthzObject(HMSPaths.getPathElements(partition2Path).toArray(new String[0])));
      

      It will evaluate to false, which means after rename, the path of the table partition disappear.

        Attachments

        1. SENTRY-1644.001-sentry-ha-redesign.patch
          13 kB
          Lei (Eddy) Xu
        2. SENTRY-1644.002-master.patch
          17 kB
          Lei (Eddy) Xu
        3. SENTRY-1644.003-master.patch
          20 kB
          Lei (Eddy) Xu
        4. SENTRY-1644.004-master.patch
          20 kB
          Lei (Eddy) Xu
        5. SENTRY-1644.005-sentry-ha-redesign.patch
          19 kB
          Lei (Eddy) Xu

          Issue Links

            Activity

              People

              • Assignee:
                eddyxu Lei (Eddy) Xu
                Reporter:
                hahao Hao Hao
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: