Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5188217D3B for ; Fri, 3 Oct 2014 01:23:17 +0000 (UTC) Received: (qmail 28499 invoked by uid 500); 3 Oct 2014 01:23:17 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 28461 invoked by uid 500); 3 Oct 2014 01:23:17 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 28443 invoked by uid 99); 3 Oct 2014 01:23:16 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 01:23:16 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 99E5C1DDC19; Fri, 3 Oct 2014 01:23:13 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0046494578106524680==" MIME-Version: 1.0 Subject: Re: Review Request 26057: AMBARI-7442 ServiceCheck cannot be run if there is only one stack definition From: "jun aoki" To: "Mahadev Konar" , "Newton Alex" Cc: "Alexander Denissov" , "jun aoki" , "Ambari" Date: Fri, 03 Oct 2014 01:23:13 -0000 Message-ID: <20141003012313.18846.55784@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "jun aoki" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/26057/ X-Sender: "jun aoki" References: <20140929204436.19177.20554@reviews.apache.org> In-Reply-To: <20140929204436.19177.20554@reviews.apache.org> Reply-To: "jun aoki" X-ReviewRequest-Repository: ambari --===============0046494578106524680== 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/26057/#review55306 ----------------------------------------------------------- ambari-server/src/main/java/org/apache/ambari/server/api/util/StackExtensionHelper.java Thank you Sid for your comment. Correct me if I don't get it. AmbariMetaInfo#getConfigurationInformation calls a set of StackExtentionHelper's methods in order of fillInfo(), getAllAvailableStacks() and getAllApplicableServices() And you are suggesting 1. Delete existing actionMetadata#addServceCheckAction (line 488) from getAllApplicableServices() ``` actionMetadata.addServiceCheckAction(serviceInfo.getName()) ``` 2. Not add another actionMetadata defined in the current patch 3. Add actionMetadata in populateServicesForStack() because fillInfo() calls getStackInfo() which calls populateServicesForStack() The logic that will be added to populateServicesForStack is same 1. Look for parents, 2. if parents do not exist loop the given stackInfo's services, 3. If parents exist, loop with the parent's services. can you also take a look my comment in the JIRA? https://issues.apache.org/jira/browse/AMBARI-7442?focusedCommentId=14157221&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14157221 - jun aoki On Sept. 29, 2014, 8:44 p.m., Alexander Denissov wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/26057/ > ----------------------------------------------------------- > > (Updated Sept. 29, 2014, 8:44 p.m.) > > > Review request for Ambari, Mahadev Konar and Newton Alex. > > > Bugs: AMBARI-7442 > https://issues.apache.org/jira/browse/AMBARI-7442 > > > Repository: ambari > > > Description > ------- > > ServiceCheck cannot be run if there is only one stack definition in the stack family > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/api/util/StackExtensionHelper.java fe6c6bc > ambari-server/src/test/java/org/apache/ambari/server/api/util/StackExtensionHelperTest.java 74761dd > ambari-server/src/test/resources/single_stack/ABC/1.0.0/metainfo.xml PRE-CREATION > ambari-server/src/test/resources/single_stack/ABC/1.0.0/services/HDFS/metainfo.xml PRE-CREATION > > Diff: https://reviews.apache.org/r/26057/diff/ > > > Testing > ------- > > tested the fix against a cluster > > > Thanks, > > Alexander Denissov > > --===============0046494578106524680==--