Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB7E311165 for ; Tue, 16 Sep 2014 14:46:35 +0000 (UTC) Received: (qmail 73570 invoked by uid 500); 16 Sep 2014 14:46:34 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 73516 invoked by uid 500); 16 Sep 2014 14:46:34 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 73446 invoked by uid 99); 16 Sep 2014 14:46:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2014 14:46:34 +0000 Date: Tue, 16 Sep 2014 14:46:34 +0000 (UTC) From: "Zesheng Wu (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7044) Support retention policy based on access time and modify time, use XAttr to store policy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-7044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14135548#comment-14135548 ] Zesheng Wu commented on HDFS-7044: ---------------------------------- bq. The same arguments that said that HDFS-6382 should be outside the NN apply here as well. Yes, can't agree any more. [~aw] > Support retention policy based on access time and modify time, use XAttr to store policy > ---------------------------------------------------------------------------------------- > > Key: HDFS-7044 > URL: https://issues.apache.org/jira/browse/HDFS-7044 > Project: Hadoop HDFS > Issue Type: New Feature > Components: namenode > Reporter: zhaoyunjiong > Assignee: zhaoyunjiong > Attachments: Retention policy design.pdf > > > 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)