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 F1D93186B3 for ; Tue, 29 Sep 2015 06:10:46 +0000 (UTC) Received: (qmail 73798 invoked by uid 500); 29 Sep 2015 06:10:46 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 73753 invoked by uid 500); 29 Sep 2015 06:10:46 -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 73739 invoked by uid 99); 29 Sep 2015 06:10:46 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2015 06:10:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1B433C6E94 for ; Tue, 29 Sep 2015 06:10:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.208 X-Spam-Level: ***** X-Spam-Status: No, score=5.208 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.037, 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, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id IJ-YjX64-MwI for ; Tue, 29 Sep 2015 06:10:44 +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 C9E6F204DF for ; Tue, 29 Sep 2015 06:10:42 +0000 (UTC) Received: (qmail 73716 invoked by uid 99); 29 Sep 2015 06:10:42 -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 06:10:42 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 51F5B287931; Tue, 29 Sep 2015 06:10:39 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8228828546005993441==" MIME-Version: 1.0 Subject: Re: Review Request 38794: FALCON-1473 REST API for feed sla monitoring From: "Ajay Yadava" To: "Srikanth Sundarrajan" , "Falcon" , "Ajay Yadava" Date: Tue, 29 Sep 2015 06:10:39 -0000 Message-ID: <20150929061039.23563.26041@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/38794/ X-Sender: "Ajay Yadava" References: <20150928130858.1943.70660@reviews.apache.org> In-Reply-To: <20150928130858.1943.70660@reviews.apache.org> Reply-To: "Ajay Yadava" X-ReviewRequest-Repository: falcon-git --===============8228828546005993441== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Sept. 28, 2015, 1:08 p.m., Srikanth Sundarrajan wrote: > > client/src/main/java/org/apache/falcon/cli/FalconCLI.java, line 723 > > > > > > Is this only sla miss for feed ? Also for a process. From the result it seems to cover all schedulable entities. Currently, this is only for feed. We can use the same type for process also later on. > On Sept. 28, 2015, 1:08 p.m., Srikanth Sundarrajan wrote: > > client/src/main/java/org/apache/falcon/resource/SchedulableEntityInstanceResult.java, line 33 > > > > > > Should this be extending InstanceResult instead ? Will InstanceResult not suffice in this case ? InstanceResult is very oozie instance specific and contains parameters like status, logFile, actions, wfParams etc. I can somehow fit this data in that but SchedulableEntityInstance is much cleaner and sufficient for this purpose. > On Sept. 28, 2015, 1:08 p.m., Srikanth Sundarrajan wrote: > > prism/src/main/java/org/apache/falcon/service/FeedSLAMonitoringService.java, line 454 > > > > > > Am assuming over time when an instance becomes available it would be removed from missingInstances. In this case would SLA-Miss return nothing even though the data arrived quite late ? In other words, will this feature only report missing SLA while the feed is unavailable, or will it also be able to report misses even after the data became available. It returns only pending feed instances which have missed sla. I had documented this behavior in FeedSLA.twiki appropriately but I had missed in many other places, fixed it. This API is useful for alerting usecases where users need to take actions e.g. to unblock pipelines. Once the data becomes available it is not so much useful from the perspective of requiring action from user but is still useful for reporting purposes. This API enables only the former usecase. > On Sept. 28, 2015, 1:08 p.m., Srikanth Sundarrajan wrote: > > prism/src/main/java/org/apache/falcon/resource/proxy/SchedulableEntityManagerProxy.java, line 118 > > > > > > Should the path be sla-status instead ? Converted to sla-alert. I intend to use sla-status for reporting status of all feed instances in a given time range, which is not solved by this API. > On Sept. 28, 2015, 1:08 p.m., Srikanth Sundarrajan wrote: > > client/src/main/java/org/apache/falcon/cli/FalconCLI.java, line 473 > > > > > > slaMiss for a method name is a bit misleading Converted to getFeedSLAMissPendingAlerts. > On Sept. 28, 2015, 1:08 p.m., Srikanth Sundarrajan wrote: > > prism/src/main/java/org/apache/falcon/resource/AbstractSchedulableEntityManager.java, line 160 > > > > > > Shouldn't be accessing the FeedSLAMonitoringService instance via ServiceRegistry instead of adding a static method to the class ? Fixed it. - Ajay ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/38794/#review100807 ----------------------------------------------------------- On Sept. 29, 2015, 6:10 a.m., Ajay Yadava wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/38794/ > ----------------------------------------------------------- > > (Updated Sept. 29, 2015, 6:10 a.m.) > > > Review request for Falcon. > > > Bugs: FALCON-1473 > https://issues.apache.org/jira/browse/FALCON-1473 > > > Repository: falcon-git > > > Description > ------- > > This api lists all the pending feed instances in a given time range which have missed sla. > > > Diffs > ----- > > client/src/main/java/org/apache/falcon/ResponseHelper.java a13682b > client/src/main/java/org/apache/falcon/cli/FalconCLI.java c914649 > client/src/main/java/org/apache/falcon/client/FalconClient.java 981559b > client/src/main/java/org/apache/falcon/entity/v0/SchemaHelper.java 62b810c > client/src/main/java/org/apache/falcon/resource/SchedulableEntityInstance.java f5be63d > client/src/main/java/org/apache/falcon/resource/SchedulableEntityInstanceResult.java PRE-CREATION > common/src/main/java/org/apache/falcon/entity/FeedHelper.java 572923b > common/src/main/java/org/apache/falcon/entity/parser/FeedEntityParser.java 4f5599e > common/src/main/resources/startup.properties 9db460c > docs/src/site/twiki/FalconCLI.twiki 4f72bf8 > docs/src/site/twiki/restapi/FeedSLA.twiki PRE-CREATION > docs/src/site/twiki/restapi/ResourceList.twiki ea3e3b6 > prism/src/main/java/org/apache/falcon/resource/AbstractEntityManager.java 2682257 > prism/src/main/java/org/apache/falcon/resource/AbstractSchedulableEntityManager.java 3280789 > prism/src/main/java/org/apache/falcon/resource/proxy/SchedulableEntityManagerProxy.java 47038e5 > prism/src/main/java/org/apache/falcon/service/FeedSLAMonitoringService.java 8bf43b8 > prism/src/test/java/org/apache/falcon/service/FeedSLAMonitoringTest.java PRE-CREATION > src/conf/startup.properties 8f3bc35 > webapp/src/main/java/org/apache/falcon/resource/SchedulableEntityManager.java 1c0fc74 > > Diff: https://reviews.apache.org/r/38794/diff/ > > > Testing > ------- > > Unit tests added. > Tested manually by deploying. > > > Thanks, > > Ajay Yadava > > --===============8228828546005993441==--