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 B548511177 for ; Mon, 1 Sep 2014 06:28:29 +0000 (UTC) Received: (qmail 62596 invoked by uid 500); 1 Sep 2014 06:28:29 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 62560 invoked by uid 500); 1 Sep 2014 06:28:29 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 62548 invoked by uid 99); 1 Sep 2014 06:28:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Sep 2014 06:28:29 +0000 X-ASF-Spam-Status: No, hits=-1999.5 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 01 Sep 2014 06:28:06 +0000 Received: (qmail 61645 invoked by uid 99); 1 Sep 2014 06:28:04 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Sep 2014 06:28:04 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id C72161DD2D8; Mon, 1 Sep 2014 06:28:03 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8034469132570165157==" MIME-Version: 1.0 Subject: Re: Review Request 25211: Delegated feed eviction to the appropriate Storage implementation From: shwetha.gs@inmobi.com To: shwetha.gs@inmobi.com Cc: "Falcon" , "Ajay Yadava" Date: Mon, 01 Sep 2014 06:28:03 -0000 Message-ID: <20140901062803.16961.91418@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: noreply@reviews.apache.org X-ReviewGroup: Falcon X-ReviewRequest-URL: https://reviews.apache.org/r/25211/ X-Sender: noreply@reviews.apache.org References: <20140830072240.17468.42667@reviews.apache.org> In-Reply-To: <20140830072240.17468.42667@reviews.apache.org> Reply-To: shwetha.gs@inmobi.com X-ReviewRequest-Repository: falcon-git X-Virus-Checked: Checked by ClamAV on apache.org --===============8034469132570165157== 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/25211/#review51970 ----------------------------------------------------------- common/src/main/java/org/apache/falcon/entity/Storage.java shoudl throw only FalconException move the corresponding UTs as well - shwethags On Aug. 30, 2014, 7:22 a.m., Ajay Yadava wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/25211/ > ----------------------------------------------------------- > > (Updated Aug. 30, 2014, 7:22 a.m.) > > > Review request for Falcon and shwethags. > > > Repository: falcon-git > > > Description > ------- > > Earlier FeedEviction class contained logic for both FileSystemStorage and TableStorage. Corresponding code was being called using an if else. To make the code cleaner and more manageable I moved the code to the appropriate storage class and delegated feed eviction to the appropriate Storage implementation. Needed to add evict method to Storage Interface and make some minor changes here and there. > > > Diffs > ----- > > common/src/main/java/org/apache/falcon/entity/CatalogStorage.java 7ad0716 > common/src/main/java/org/apache/falcon/entity/FileSystemStorage.java 4eb3d60 > common/src/main/java/org/apache/falcon/entity/Storage.java f88e139 > retention/src/main/java/org/apache/falcon/retention/FeedEvictor.java 4de7938 > > Diff: https://reviews.apache.org/r/25211/diff/ > > > Testing > ------- > > All FeedEvictor tests passed. > > > Thanks, > > Ajay Yadava > > --===============8034469132570165157==--