Uploaded image for project: 'Apache HAWQ (Retired)'
  1. Apache HAWQ (Retired)
  2. HAWQ-1193 TDE support in HAWQ
  3. HAWQ-1520

gpcheckhdfs should skip hdfs trash directory

    XMLWordPrintableJSON

Details

    Description

      When enable hdfs trash feature, there is a Trash directory under the encryption zone.
      Example:

      [gpadmin@test1 hawq]$ sudo -u hdfs hdfs crypto -listZones
      /hawq/hawq-1503886333  tdekey
      [gpadmin@test1 hawq]$ hdfs dfs -ls /hawq/hawq-1503886333/
      Found 1 items
      drwxrwxrwt   - hdfs hdfs          0 2017-08-27 23:59 /hawq/hawq-1503886333/.Trash
      

      But gpcheckhdfs scrpit doesn't consider it(/hawq/hawq-1503886333) as an empty directory.
      We should fix it to skip this trash directory.

      Note:
      If you just enable trash without encryption zone, the trash directory is /user/<username>/.Trash/, so it doesn't influence gpcheckhdfs in the condition.

      Attachments

        Activity

          People

            hongxu ma Hongxu Ma
            hongxu ma Hongxu Ma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: