[
https://issues.apache.org/jira/browse/AMBARI-21175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16046870#comment-16046870
]
Hudson commented on AMBARI-21175:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #7615 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/7615/])
AMBARI-21175 - Host Versions Remain on CURRENT During STANDARD (Full) (jhurley:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=7847e4b6cf65b777e516a4806cbf5f45cdd207ee])
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/FinalizeUpgradeAction.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostVersionDAO.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/serveraction/upgrades/UpgradeActionTest.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostVersionEntity.java
> Host Versions Remain on CURRENT During STANDARD (Full) Upgrades
> ---------------------------------------------------------------
>
> Key: AMBARI-21175
> URL: https://issues.apache.org/jira/browse/AMBARI-21175
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 3.0.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Priority: Critical
> Fix For: 3.0.0
>
> Attachments: AMBARI-21175.patch
>
>
> Host versions were changed for patch upgrades to allow multiple CURRENT
> repositories per host. However, it seems that a case was missed where, during
> a full upgrade, the prior repository is never set to INSTALLED. This was the
> behavior which existed previously.
> STR:
> - Install a cluster with ZK and HDFS on HDP 2.5
> - Perform an upgrade to HDP 2.6 and Finalize
> After the upgrade, the {{host_version}} table contains {{CURRENT}} entries
> for both the HDP 2.5 and 2.6 repositories.
> {code}
> ambari=# select state, stack_id, version, display_name from host_version,
> repo_version WHERE host_version.repo_version_id =
> repo_version.repo_version_id ;
> state | stack_id | version | display_name
> -----------+----------+--------------+------------------
> CURRENT | 13 | 2.5.0.0-1237 | HDP-2.5.0.0-1237
> CURRENT | 13 | 2.5.0.0-1237 | HDP-2.5.0.0-1237
> CURRENT | 13 | 2.5.0.0-1237 | HDP-2.5.0.0-1237
> CURRENT | 12 | 2.6.0.0-334 | HDP-2.6.0.0-334
> CURRENT | 12 | 2.6.0.0-334 | HDP-2.6.0.0-334
> CURRENT | 12 | 2.6.0.0-334 | HDP-2.6.0.0-334
> (6 rows)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)