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 7AE5818D37 for ; Tue, 8 Dec 2015 19:20:28 +0000 (UTC) Received: (qmail 77200 invoked by uid 500); 8 Dec 2015 19:20:22 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 77160 invoked by uid 500); 8 Dec 2015 19:20:22 -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 77144 invoked by uid 99); 8 Dec 2015 19:20:21 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2015 19:20:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 774E81A1041 for ; Tue, 8 Dec 2015 19:20:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.427 X-Spam-Level: *** X-Spam-Status: No, score=3.427 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id L2mq-xZvdLdY for ; Tue, 8 Dec 2015 19:20:20 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 9F05920DB9 for ; Tue, 8 Dec 2015 19:20:18 +0000 (UTC) Received: (qmail 77076 invoked by uid 99); 8 Dec 2015 19:20:17 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2015 19:20:17 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 7781E29245F; Tue, 8 Dec 2015 19:20:17 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1947299679390548997==" MIME-Version: 1.0 Subject: Re: Review Request 40892: FALCON-1644 Retention : Some feed instances are never deleted by retention jobs. From: "Balu Vellanki" To: "Venkat Ranganathan" Cc: "Ying Zheng" , "Balu Vellanki" , "sandeep samudrala" , "Falcon" , "Ajay Yadava" Date: Tue, 08 Dec 2015 19:20:17 -0000 Message-ID: <20151208192017.1618.25928@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Balu Vellanki" X-ReviewGroup: Falcon X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/40892/ X-Sender: "Balu Vellanki" References: <20151203043919.1719.64678@reviews.apache.org> In-Reply-To: <20151203043919.1719.64678@reviews.apache.org> Reply-To: "Balu Vellanki" X-ReviewRequest-Repository: falcon-git --===============1947299679390548997== 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/ ----------------------------------------------------------- (Updated Dec. 8, 2015, 7:20 p.m.) Review request for Falcon and Venkat Ranganathan. Changes ------- Attaching a new patch that incorporates feedback provided by Falcon team. This patch has - Incorporated feedback made in review board. - Introduced a new runtime property "falcon.retention.keep.instances.beyond.validity", set to true by default. This retains existing behavior. Users can set this property to false, and ensure deletion of all instances. - Updated retention documentation. 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 (updated) ----- 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 --===============1947299679390548997==--