Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
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:
- access time
- If (accessTime + retentionTimeForAccess < now), the file will be delete
- modify time
- If (modifyTime + retentionTimeForModify < now), the file will be delete
- access time and modify time
- If (accessTime + retentionTimeForAccess < now && modifyTime + retentionTimeForModify < now ), the file will be delete
Attachments
Attachments
Issue Links
- is related to
-
HDFS-6382 HDFS File/Directory TTL
- Open