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 50E19180D7 for ; Wed, 10 Feb 2016 15:50:11 +0000 (UTC) Received: (qmail 50780 invoked by uid 500); 10 Feb 2016 15:50:11 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 50749 invoked by uid 500); 10 Feb 2016 15:50:11 -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 50734 invoked by uid 99); 10 Feb 2016 15:50:10 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2016 15:50:10 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 1393329B58D; Wed, 10 Feb 2016 15:50:10 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8283205508563575071==" MIME-Version: 1.0 Subject: Re: Review Request 43377: Create Upgrade Packs for Patch Upgrades From: Jonathan Hurley To: Jonathan Hurley , Dmitro Lisnichenko Cc: Alejandro Fernandez , Nate Cole , Ambari Date: Wed, 10 Feb 2016 15:50:10 -0000 Message-ID: <20160210155010.24150.26993@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Jonathan Hurley X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/43377/ X-Sender: Jonathan Hurley References: <20160210000917.24150.16201@reviews.apache.org> In-Reply-To: <20160210000917.24150.16201@reviews.apache.org> X-ReviewBoard-Diff-For: ambari-server/src/test/resources/stacks/HDP/2.1.1/upgrades/upgrade_test_partial.xml X-ReviewBoard-Diff-For: ambari-server/src/main/resources/stacks/HDP/2.4/upgrades/patch-express.xml X-ReviewBoard-Diff-For: ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/patch-express.xml X-ReviewBoard-Diff-For: ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/patch.xml X-ReviewBoard-Diff-For: ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/patch-express.xml X-ReviewBoard-Diff-For: ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/UpgradeScope.java X-ReviewBoard-Diff-For: ambari-server/src/main/resources/stacks/HDP/2.4/upgrades/patch.xml X-ReviewBoard-Diff-For: ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/patch.xml Reply-To: Jonathan Hurley X-ReviewRequest-Repository: ambari --===============8283205508563575071== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Feb. 9, 2016, 7:09 p.m., Alejandro Fernandez wrote: > > ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java, line 243 > > > > > > if null or empty, should raise exception. > > Nate Cole wrote: > Untrue. A repo_version without these elements is 1) backwards compatible and 2) can be a STANDARD repository instead of a PATCH one. In addition, we're checking for the existence of targeted services. If there are no targeted services, that means ALL services and regular RU/EU should be used. But the only way you'd get into this block is by having a PARTIAL upgrade pack, no? Doesn't that mean that you have to have an XML file? - Jonathan ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/43377/#review118505 ----------------------------------------------------------- On Feb. 9, 2016, 6:01 p.m., Nate Cole wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/43377/ > ----------------------------------------------------------- > > (Updated Feb. 9, 2016, 6:01 p.m.) > > > Review request for Ambari, Dmitro Lisnichenko and Jonathan Hurley. > > > Bugs: AMBARI-14978 > https://issues.apache.org/jira/browse/AMBARI-14978 > > > Repository: ambari > > > Description > ------- > > Created separate upgrade packs for patches. The necessitated a new enum UpgradeScope to indicate that the upgrade was for partial cluster upgrades (which will help when doing Component (Service) Upgrades). > > Also added a fix for orchestration of ClusterGroupings that target specific services that are not getting upgraded. > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 0d9176d > ambari-server/src/main/java/org/apache/ambari/server/state/stack/UpgradePack.java b860731 > ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/ClusterGrouping.java 5e21da5 > ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/UpgradeScope.java PRE-CREATION > ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/patch-express.xml PRE-CREATION > ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/patch.xml PRE-CREATION > ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/patch-express.xml PRE-CREATION > ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/patch.xml PRE-CREATION > ambari-server/src/main/resources/stacks/HDP/2.4/upgrades/patch-express.xml PRE-CREATION > ambari-server/src/main/resources/stacks/HDP/2.4/upgrades/patch.xml PRE-CREATION > ambari-server/src/test/java/org/apache/ambari/server/state/UpgradeHelperTest.java b15157e > ambari-server/src/test/resources/stacks/HDP/2.1.1/upgrades/upgrade_test_partial.xml PRE-CREATION > > Diff: https://reviews.apache.org/r/43377/diff/ > > > Testing > ------- > > Manual. Automated: > > > Tests run: 3822, Failures: 0, Errors: 0, Skipped: 31 > > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 33:52.026s > [INFO] Finished at: Tue Feb 09 17:08:46 EST 2016 > [INFO] Final Memory: 33M/677M > [INFO] ------------------------------------------------------------------------ > > > Thanks, > > Nate Cole > > --===============8283205508563575071==--