Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7044

Support retention policy based on access time and modify time, use XAttr to store policy

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • namenode
    • None

    Description

      The basic idea is set retention policy on directory based on access time and modify time and use XAttr to store policy.
      Files under directory which have retention policy will be delete if meet the retention rule.
      There are three rule:

      1. access time
        • If (accessTime + retentionTimeForAccess < now), the file will be delete
      2. modify time
        • If (modifyTime + retentionTimeForModify < now), the file will be delete
      3. access time and modify time
        • If (accessTime + retentionTimeForAccess < now && modifyTime + retentionTimeForModify < now ), the file will be delete

      Attachments

        1. Retention policy design.pdf
          37 kB
          yunjiong zhao

        Issue Links

          Activity

            People

              zhaoyunjiong yunjiong zhao
              zhaoyunjiong yunjiong zhao
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: