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 34FAC101B7 for ; Tue, 15 Apr 2014 00:08:41 +0000 (UTC) Received: (qmail 76247 invoked by uid 500); 15 Apr 2014 00:08:40 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 76219 invoked by uid 500); 15 Apr 2014 00:08:39 -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 76207 invoked by uid 99); 15 Apr 2014 00:08:39 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 00:08:39 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 090671D5EFA; Tue, 15 Apr 2014 00:08:35 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1828396353256939576==" MIME-Version: 1.0 Subject: Re: Review Request 20327: Allow inline host group scoped configuration to be specified in Blueprints From: "Sid Wagle" To: "Nate Cole" , "Sid Wagle" , "Tom Beerbower" Cc: "Ambari" , "John Speidel" Date: Tue, 15 Apr 2014 00:08:35 -0000 Message-ID: <20140415000835.29805.44655@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Sid Wagle" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/20327/ X-Sender: "Sid Wagle" References: <20140415000344.17634.30680@reviews.apache.org> In-Reply-To: <20140415000344.17634.30680@reviews.apache.org> Reply-To: "Sid Wagle" X-ReviewRequest-Repository: ambari --===============1828396353256939576== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On April 15, 2014, 12:03 a.m., Tom Beerbower wrote: > > ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog151.java, lines 115-135 > > > > > > Not sure if these changes belong in the 151 upgrade catalog since 1.5.1 is basically out the door without this patch. If I understand correctly, there should be an upgrade catalog for the next version (1.6?) that includes these changes. > > Tom Beerbower wrote: > Maybe remove the upgrade catalog changes from this patch and open a Jira to add them to the next upgrade catalog. Agree with Tom, these changes should be in UpgradeCatalog160. Steps: - Override AbstractUpgradeCatalog and create UpgradeCatalog160, copy the lines of code here into the executeDDLUpdates. - Add UpgradeCatalog160.class to the CatalogBinder in the SchemaUpgradeHelper. - Sid ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20327/#review40326 ----------------------------------------------------------- On April 14, 2014, 4:37 p.m., John Speidel wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/20327/ > ----------------------------------------------------------- > > (Updated April 14, 2014, 4:37 p.m.) > > > Review request for Ambari, Nate Cole, Sid Wagle, and Tom Beerbower. > > > Bugs: AMBARI-5462 > https://issues.apache.org/jira/browse/AMBARI-5462 > > > Repository: ambari > > > Description > ------- > > Allow users to specify host group scoped configuration in a blueprint. This configuration is specified inline within host group definition. > A subsequent Jira will handle reusable host group scoped configuration that is specified outside of the host group. > > Please see the Apache Jira for more information: https://issues.apache.org/jira/browse/AMBARI-5462 > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintResourceProvider.java ee3ff3b > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterResourceProvider.java 8d26cfa > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ConfigGroupResourceProvider.java e817473 > ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintConfigEntity.java 7572930 > ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintConfiguration.java PRE-CREATION > ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostGroupConfigEntity.java PRE-CREATION > ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostGroupConfigEntityPK.java PRE-CREATION > ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostGroupEntity.java fbc6ef4 > ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog151.java 3566e23 > ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 41e3127 > ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql 5418cac > ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql c2b0574 > ambari-server/src/main/resources/META-INF/persistence.xml 50f1fe0 > ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintResourceProviderTest.java fbeecbd > ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ClusterResourceProviderTest.java 922df27 > ambari-server/src/test/java/org/apache/ambari/server/orm/entities/HostGroupConfigEntityPKTest.java PRE-CREATION > ambari-server/src/test/java/org/apache/ambari/server/orm/entities/HostGroupConfigEntityTest.java PRE-CREATION > > Diff: https://reviews.apache.org/r/20327/diff/ > > > Testing > ------- > > Functional Testing: > Used blueprint with host group scoped configuration to create a cluster and ensure that config properties are set properly and visible in UI. > > Unit Tests: > - Added additional tests > - All tests pass > > Tests run: 1533, Failures: 0, Errors: 0, Skipped: 9 > ... > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 18:47.035s > [INFO] Finished at: Mon Apr 14 11:33:55 EDT 2014 > [INFO] Final Memory: 30M/123M > [INFO] ------------------------------------------------------------------------ > > > Thanks, > > John Speidel > > --===============1828396353256939576==--