Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33D5318F13 for ; Thu, 10 Dec 2015 11:36:25 +0000 (UTC) Received: (qmail 60042 invoked by uid 500); 10 Dec 2015 11:36:25 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 59996 invoked by uid 500); 10 Dec 2015 11:36:25 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 59984 invoked by uid 99); 10 Dec 2015 11:36:24 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2015 11:36:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 66F63C0179 for ; Thu, 10 Dec 2015 11:36:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.628 X-Spam-Level: **** X-Spam-Status: No, score=4.628 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id iQsrnm_WzQwR for ; Thu, 10 Dec 2015 11:36:23 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 70FBC429C3 for ; Thu, 10 Dec 2015 11:36:22 +0000 (UTC) Received: (qmail 59977 invoked by uid 99); 10 Dec 2015 11:36:21 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2015 11:36:21 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 24AFD292EE0; Thu, 10 Dec 2015 11:36:21 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8229077206003583952==" MIME-Version: 1.0 Subject: Re: Review Request 40892: FALCON-1644 Retention : Some feed instances are never deleted by retention jobs. From: "Ajay Yadava" To: "Venkat Ranganathan" Cc: "Balu Vellanki" , "Falcon" , "Ajay Yadava" Date: Thu, 10 Dec 2015 11:36:21 -0000 Message-ID: <20151210113621.1619.1504@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Ajay Yadava" X-ReviewGroup: Falcon X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/40892/ X-Sender: "Ajay Yadava" References: <20151208192017.1618.25928@reviews.apache.org> In-Reply-To: <20151208192017.1618.25928@reviews.apache.org> Reply-To: "Ajay Yadava" X-ReviewRequest-Repository: falcon-git --===============8229077206003583952== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/40892/#review109743 ----------------------------------------------------------- common/src/main/java/org/apache/falcon/entity/FeedHelper.java (line 1015) I just noticed that you are using frequency for lifecycle and limit for old retention. I think limit is correct for both. For lifecycle this is available in the property: "retention.policy.agebaseddelete.limit" oozie/src/main/java/org/apache/falcon/oozie/feed/FeedRetentionCoordinatorBuilder.java (line 68) We need same change for lifecycle retention stage also. - Ajay Yadava On Dec. 8, 2015, 7:20 p.m., Balu Vellanki wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/40892/ > ----------------------------------------------------------- > > (Updated Dec. 8, 2015, 7:20 p.m.) > > > Review request for Falcon and Venkat Ranganathan. > > > Bugs: Falcon-1644 > https://issues.apache.org/jira/browse/Falcon-1644 > > > Repository: falcon-git > > > Description > ------- > > Here is a sample feed validity. > > > > > > > In the above example, the validity time is "the time interval when the feed is valid on this cluster". After the validity time ends, falcon is not expected to perform any operations on the feed. The retention job for this feed will be run from validity start time up to validity end time, and will delete any feed instances older than 10 hours. Some instances of Feed will never be deleted. In the above example, feed instances at between 2015-10-30T00:00Z and 2015-10-30T10:00Z will never be deleted. > Ideally, the retention coordinator job should run from "validity start time" up to "validity end time + retention age limit" to ensure all instances are handled. > > > Diffs > ----- > > common/src/main/java/org/apache/falcon/entity/FeedHelper.java d601c5d > common/src/main/resources/runtime.properties f499dd9 > docs/src/site/twiki/FalconDocumentation.twiki f384a42 > oozie/src/main/java/org/apache/falcon/oozie/feed/FeedRetentionCoordinatorBuilder.java 69ca2c3 > oozie/src/test/java/org/apache/falcon/oozie/feed/OozieFeedWorkflowBuilderTest.java d034b1a > src/conf/runtime.properties 4bc1bc0 > webapp/src/test/resources/runtime.properties 1da0ca7 > > Diff: https://reviews.apache.org/r/40892/diff/ > > > Testing > ------- > > End2End testing done to ensure retention coord endtime is set to "validity end time + retention age limit" > > > Thanks, > > Balu Vellanki > > --===============8229077206003583952==--