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 E156118309 for ; Mon, 18 Jan 2016 11:57:29 +0000 (UTC) Received: (qmail 93056 invoked by uid 500); 18 Jan 2016 11:57:29 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 93023 invoked by uid 500); 18 Jan 2016 11:57:29 -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 93011 invoked by uid 99); 18 Jan 2016 11:57:29 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2016 11:57:29 +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 C363DC13AC for ; Mon, 18 Jan 2016 11:57:28 +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-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tqpH5Hvu4mUy for ; Mon, 18 Jan 2016 11:57:27 +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 309E324E24 for ; Mon, 18 Jan 2016 11:57:26 +0000 (UTC) Received: (qmail 91947 invoked by uid 99); 18 Jan 2016 11:57:25 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2016 11:57:25 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 3F179281B12; Mon, 18 Jan 2016 11:57:24 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============9188811581741172933==" MIME-Version: 1.0 Subject: Re: Review Request 42188: FALCON-1742 Implement instance summary api for native scheduler From: "Ajay Yadava" To: "Deepak Barr" , "Pallavi Rao" , "Falcon" , "Ajay Yadava" Date: Mon, 18 Jan 2016 11:57:24 -0000 Message-ID: <20160118115724.32038.57920@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/42188/ X-Sender: "Ajay Yadava" References: <20160118110133.32038.82555@reviews.apache.org> In-Reply-To: <20160118110133.32038.82555@reviews.apache.org> Reply-To: "Ajay Yadava" X-ReviewRequest-Repository: falcon-git --===============9188811581741172933== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Jan. 18, 2016, 11:01 a.m., Ajay Yadava wrote: > > scheduler/src/main/java/org/apache/falcon/workflow/engine/FalconWorkflowEngine.java, line 414 > > > > > > Shouldn't this be outside for loop? > > Pallavi Rao wrote: > In this implementation, I'm retrieving instances per state, rather than retrieve all instances and sort and count in memory. > > Deepak Barr wrote: > states variable is different for different iterations. Should be OK. The ordering can be done in db query, that way all invocations of the query will result in sorted result and we will not need to make multiple db calls. That won't work? - Ajay ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/42188/#review114982 ----------------------------------------------------------- On Jan. 12, 2016, 10:14 a.m., Pallavi Rao wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/42188/ > ----------------------------------------------------------- > > (Updated Jan. 12, 2016, 10:14 a.m.) > > > Review request for Falcon. > > > Bugs: FALCON-1742 > https://issues.apache.org/jira/browse/FALCON-1742 > > > Repository: falcon-git > > > Description > ------- > > This was not implemented. > > > Diffs > ----- > > client/src/main/java/org/apache/falcon/resource/EntitySummaryResult.java 4a885ec > scheduler/src/main/java/org/apache/falcon/workflow/engine/FalconWorkflowEngine.java bffdb0b > unit/src/main/java/org/apache/falcon/unit/FalconUnitClient.java a82cf03 > webapp/src/test/java/org/apache/falcon/resource/InstanceSchedulerManagerJerseyIT.java b1c8ce0 > > Diff: https://reviews.apache.org/r/42188/diff/ > > > Testing > ------- > > Added IT and did manual testing. > > > Thanks, > > Pallavi Rao > > --===============9188811581741172933==--