[
https://issues.apache.org/jira/browse/AMBARI-14891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15131000#comment-15131000
]
Hudson commented on AMBARI-14891:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #4269 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/4269/])
AMBARI-14891. RU/EU should only delete configs on downgrade if source
(afernandez:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=7259d972e98b69415bf786f430a6a1276f9e78b7])
*
ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/FinalizeUpgradeAction.java
*
ambari-server/src/test/java/org/apache/ambari/server/serveraction/upgrades/UpgradeActionTest.java
> RU/EU should only delete configs on downgrade if source stack matches stack
> whose status is CURRENT
> ---------------------------------------------------------------------------------------------------
>
> Key: AMBARI-14891
> URL: https://issues.apache.org/jira/browse/AMBARI-14891
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.2
> Reporter: Alejandro Fernandez
> Assignee: Alejandro Fernandez
> Fix For: 2.2.2
>
> Attachments: AMBARI-14891.trunk.patch
>
>
> Saw a case with a customer in which they did the following.
> * Ambari 2.1.2
> * Rolling Upgrade from HDP 2.2 to 2.3.0.0 and skipped the Finalize step, so
> Ambari never called "Save DB State". Hence, the current stack version was
> still 2.2. They then modified the host_version and cluster_version records in
> the DB to mark HDP 2.3 as CURRENT.
> * Forgot to call ambari-server set-current-version
> * Registered and installed bits for HDP 2.3.4.0 and began another RU. After
> running into an issue, they decided to downgrade, which then completely
> removed the configs for the target stack (which is HDP 2.3!)
> In order to prevent deleting configs in cases where the user has modified the
> database, add stronger validation to FinalizeUpgradeAction so that we check
> that the request's source target stack equals the stack of the repo marked as
> CURRENT. In this case, they were 2.2 and 2.3, respectively.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)