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 F1BFC1879E for ; Tue, 29 Sep 2015 18:51:32 +0000 (UTC) Received: (qmail 17318 invoked by uid 500); 29 Sep 2015 18:51:32 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 17275 invoked by uid 500); 29 Sep 2015 18:51:32 -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 17264 invoked by uid 99); 29 Sep 2015 18:51:32 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2015 18:51:32 +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 30C80C0479 for ; Tue, 29 Sep 2015 18:51:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.975 X-Spam-Level: *** X-Spam-Status: No, score=3.975 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.006] 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 3vzSBqEPLBH7 for ; Tue, 29 Sep 2015 18:51:30 +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 EE41E439E2 for ; Tue, 29 Sep 2015 18:51:29 +0000 (UTC) Received: (qmail 17241 invoked by uid 99); 29 Sep 2015 18:51:29 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2015 18:51:29 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 46AE7287DEB; Tue, 29 Sep 2015 18:51:26 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3521480988872421011==" MIME-Version: 1.0 Subject: Re: Review Request 38834: Refactor FalconCLI to make it more manageable. From: "Balu Vellanki" To: "Sowmya Ramesh" , "Ajay Yadava" Cc: "Balu Vellanki" , "Falcon" Date: Tue, 29 Sep 2015 18:51:26 -0000 Message-ID: <20150929185126.23563.97149@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/38834/ X-Sender: "Balu Vellanki" References: <20150929174632.23563.99907@reviews.apache.org> In-Reply-To: <20150929174632.23563.99907@reviews.apache.org> Reply-To: "Balu Vellanki" X-ReviewRequest-Repository: falcon-git --===============3521480988872421011== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Sept. 29, 2015, 5:46 p.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/cli/FalconAdminCLI.java, line 37 > > > > > > shouldn't version also be here? Is it used elsewhere also and you need it in base class? Version is used in baseclass. So I need to keep it in FalconCLI > On Sept. 29, 2015, 5:46 p.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/cli/FalconAdminCLI.java, line 38 > > > > > > These options were earlier public and I am not sure but they might be used by regression etc. Since they are final, no harm in exposing them I guess. I looked at Falcon regression and confirmed that they are not being used in Falcon regression code. > On Sept. 29, 2015, 5:46 p.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/cli/FalconAdminCLI.java, line 58 > > > > > > Should it be else if instead of if? STACK_OPTION can be used along with other options. So it should not be "else if" > On Sept. 29, 2015, 5:46 p.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/cli/FalconCLI.java, line 218 > > > > > > Any reason for not returning the exit value for other commands? entityCommand, instanceCommand, metadataCommand and recipeCommand return void. Hence we are not returning the exit value. > On Sept. 29, 2015, 5:46 p.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/cli/FalconInstanceCLI.java, line 288 > > > > > > Nit: Moving it up at the beginning will improve the readability. Agreed, made all changes in Falcon*CLI - Balu ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/38834/#review100976 ----------------------------------------------------------- On Sept. 29, 2015, 1 a.m., Balu Vellanki wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/38834/ > ----------------------------------------------------------- > > (Updated Sept. 29, 2015, 1 a.m.) > > > Review request for Falcon, Ajay Yadava and Sowmya Ramesh. > > > Bugs: FALCON-592 > https://issues.apache.org/jira/browse/FALCON-592 > > > Repository: falcon-git > > > Description > ------- > > Today, FalconCLI has options for all types of commands, namely instance, entity, admin, graph and recipe. When I had to write CLI for falcon Metadata, I separated it out into FalconMetadataCLI. This helped code become more readable and manageable. > In similar fashion, break up FalconCLI into FalconInstanceCLI, FalconEntityCLI and so on. > > > Diffs > ----- > > client/src/main/java/org/apache/falcon/cli/FalconAdminCLI.java PRE-CREATION > client/src/main/java/org/apache/falcon/cli/FalconCLI.java c914649 > client/src/main/java/org/apache/falcon/cli/FalconEntityCLI.java PRE-CREATION > client/src/main/java/org/apache/falcon/cli/FalconInstanceCLI.java PRE-CREATION > client/src/main/java/org/apache/falcon/cli/FalconMetadataCLI.java dbc553c > client/src/main/java/org/apache/falcon/cli/FalconRecipeCLI.java PRE-CREATION > client/src/main/java/org/apache/falcon/recipe/RecipeFactory.java 32b0871 > webapp/src/test/java/org/apache/falcon/cli/FalconCLIIT.java 07aacdd > > Diff: https://reviews.apache.org/r/38834/diff/ > > > Testing > ------- > > Unit and integration tests passed. Tested end2end with simple entity submission from CLI > > > Thanks, > > Balu Vellanki > > --===============3521480988872421011==--