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

if drop external partition fails at the step of move external dir to the trash, but partition gets dropped successfully, sentry acls are still applied to the dir

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.0
    • None
    • None
    • None

    Description

      Found out there is an issue when drop external partition fails at the last step of move dir to trash, partition gets successfully dropped, but sentry acls still applied to the dir.

      alter table 1008_tbl add partition (i=3) location '/data/test1/1008_par1';
      alter table 1008_tbl drop partition (i=3);
      Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.SentryFilterDDLTask. Got exception: java.io.IOException Failed to move to trash: hdfs://nameservice1/data/test1/1008_par1 (state=08S01,code=1)
      
      show partitions 1008_tbl; (i=3 not shown)
      sudo -u hdfs hdfs dfs -getfacl -R /data/test1/1008_par1
      # file: /data/test1/1008_par1
      # owner: hive
      # group: hive
      user::rwx
      user:hive:rwx
      group:hbase:rwx (sentry applied extended acls)
      group::---
      group:hive:rwx
      mask::rwx
      other::--x
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            anneyu Anne Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: