[
https://issues.apache.org/jira/browse/AMBARI-14891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15129688#comment-15129688
]
Hadoop QA commented on AMBARI-14891:
------------------------------------
{color:green}+1 overall{color}. Here are the results of testing the latest
attachment
http://issues.apache.org/jira/secure/attachment/12785888/AMBARI-14891.trunk.patch
against trunk revision .
{color:green}+1 @author{color}. The patch does not contain any @author
tags.
{color:green}+1 tests included{color}. The patch appears to include 1 new
or modified test files.
{color:green}+1 javac{color}. The applied patch does not increase the
total number of javac compiler warnings.
{color:green}+1 release audit{color}. The applied patch does not increase
the total number of release audit warnings.
{color:green}+1 core tests{color}. The patch passed unit tests in
ambari-server.
Test results:
https://builds.apache.org/job/Ambari-trunk-test-patch/5168//testReport/
Console output:
https://builds.apache.org/job/Ambari-trunk-test-patch/5168//console
This message is automatically generated.
> 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)