You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2017/08/02 16:23:01 UTC
[jira] [Commented] (AMBARI-21626) Configs For Target Stack Are Not
Created During Upgrade
[ https://issues.apache.org/jira/browse/AMBARI-21626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16111204#comment-16111204 ]
Hudson commented on AMBARI-21626:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #7836 (See [https://builds.apache.org/job/Ambari-trunk-Commit/7836/])
AMBARI-21626 - Configs For Target Stack Are Not Created During Upgrade (jhurley: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=ea57a6bab346eb18eeb538bd86ac580ff7f07afc])
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/ConfigHelper.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/ClusterGrouping.java
* (edit) ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_checks.xml
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java
> Configs For Target Stack Are Not Created During Upgrade
> -------------------------------------------------------
>
> Key: AMBARI-21626
> URL: https://issues.apache.org/jira/browse/AMBARI-21626
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 2.6.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Priority: Blocker
> Fix For: 2.6.0
>
> Attachments: AMBARI-21626.patch
>
>
> During an upgrade from HDP 2.5 to HDP 2.6, the new configurations are not created in HDP 2.6 - they're created in HDP 2.5 which causes services to fail on restart.
> STR:
> - Create an HDP 2.5 cluster with ZK + HDFS
> - Do an EU to HDP 2.6
> The EU will fail right after the "move stack version" step.
> It looks like the bug is in {{ConfigHelper}} where it ignores the passed-in {{StackId}} and uses the Cluster's stack:
> {code}
> Config createConfig(Cluster cluster, StackId stackId, AmbariManagementController controller,
> String type, String tag, Map<String, String> properties,
> Map<String, Map<String, String>> propertyAttributes) throws AmbariException {
> ...
> return controller.createConfig(cluster, type, properties, tag, propertyAttributes);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)