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 A809717A0E for ; Fri, 24 Apr 2015 18:18:50 +0000 (UTC) Received: (qmail 30211 invoked by uid 500); 24 Apr 2015 18:18:50 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 30184 invoked by uid 500); 24 Apr 2015 18:18:50 -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 30170 invoked by uid 99); 24 Apr 2015 18:18:50 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2015 18:18:50 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 434831C233F; Fri, 24 Apr 2015 18:18:51 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1673187848652685988==" MIME-Version: 1.0 Subject: Review Request 33526: Downgrade must manage cross-stack configuration sets From: "Jonathan Hurley" To: "Alejandro Fernandez" , "Nate Cole" Cc: "Ambari" , "Jonathan Hurley" Date: Fri, 24 Apr 2015 18:18:51 -0000 Message-ID: <20150424181851.2947.64434@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Jonathan Hurley" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/33526/ X-Sender: "Jonathan Hurley" Reply-To: "Jonathan Hurley" X-ReviewRequest-Repository: ambari --===============1673187848652685988== 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/33526/ ----------------------------------------------------------- Review request for Ambari, Alejandro Fernandez and Nate Cole. Bugs: AMBARI-10736 https://issues.apache.org/jira/browse/AMBARI-10736 Repository: ambari Description ------- Downgrade must determine, or be passed, the targeted downgrade stack. In the event that the downgrade is moving to a version that is different than the current desired (as determined by the Cluster desired stack version), Downgrade must remove those configurations. After which, the most current configs for the targeted downgrade version should be re-set as the current for the cluster. In addition, the ConfigureAction must be augmented to understand that when it is being invoked by a downgrade, and is across stacks, that it may be no-opping as it reverts Diffs ----- ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 730fba5 ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClusterDAO.java 35a1700 ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ServiceConfigDAO.java fbaec3e ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterConfigEntity.java 8a79d1f ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterConfigMappingEntity.java fa48399 ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ServiceConfigEntity.java 1a31252 ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/FinalizeUpgradeAction.java 49e241f ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java 855bb3f ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeContext.java 6436e22 ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java 2558de8 ambari-server/src/test/java/org/apache/ambari/server/state/UpgradeHelperTest.java 9c129e8 Diff: https://reviews.apache.org/r/33526/diff/ Testing ------- Manually tested downgrade about 100 zillion times, monitoring the database. Unit tests being written and will update here when they are prepared and pass... Thanks, Jonathan Hurley --===============1673187848652685988==--