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/05/31 21:47:04 UTC

[jira] [Commented] (AMBARI-20958) Host Version on Finalization Must Be Scoped Correctly Based on Upgrade Type

    [ https://issues.apache.org/jira/browse/AMBARI-20958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032029#comment-16032029 ] 

Hudson commented on AMBARI-20958:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #7555 (See [https://builds.apache.org/job/Ambari-trunk-Commit/7555/])
AMBARI-20958 - Host Version on Finalization Must Be Scoped Correctly (jhurley: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a2632675a37223d66dc2cb2edb3138467d74fb5b])
* (edit) ambari-server/src/main/resources/Ambari-DDL-Derby-CREATE.sql
* (edit) ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/ServiceComponentHost.java
* (edit) ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/UpdateDesiredStackAction.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java
* (edit) ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
* (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/FinalizeUpgradeAction.java
* (edit) ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql
* (edit) ambari-server/src/main/java/org/apache/ambari/server/serveraction/ServerActionExecutor.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostVersionDAO.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostComponentStateDAO.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostSummary.java
* (edit) ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/VersionDefinitionResourceProvider.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/dao/RepositoryVersionDAO.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/events/listeners/upgrade/HostVersionOutOfSyncListener.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/events/listeners/upgrade/StackVersionListener.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RepositoryVersionEntity.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostVersionEntity.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeContext.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/events/listeners/upgrade/StackVersionListenerTest.java


> Host Version on Finalization Must Be Scoped Correctly Based on Upgrade Type
> ---------------------------------------------------------------------------
>
>                 Key: AMBARI-20958
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20958
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: trunk
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: trunk
>
>
> During a {{PATCH}} or {{SERVICE}} upgrade, finalization will either fail or be incorrect based on the topology of the cluster. In cases where the upgraded service has components on every host, the {{host_version}} table is moved incorrectly to reflect the stack of the upgraded component. 
> h6. Topology (HDP 2.4.2.0-236)
> - c6401 - ZooKeeper Server, ZooKeeper Client, Storm Nimbus
> - c6402 - ZooKeeper Server, ZooKeeper Client, Storm Supervisor
> - c6403 - ZooKeeper Server, ZooKeeper Client, Storm Supervisor
> h6. {{SERVICE}} upgrade from to HDP-2.5.4.0-121 for {{STORM}} only:
> {noformat}
> Begin finalizing the upgrade of cluster c1 to version 2.5.4.0-121
> Finalizing the upgraded state of host components in 3 host(s).
> Finalizing the version for 3 host(s).
> Finalizing the version for cluster c1.
> Creating upgrade history.
> Upgrade was successful!
> {noformat}
> {code}
> ambari=# SELECT host_version.host_id, repo_version.version, state FROM host_version, repo_version WHERE host_version.repo_version_id = repo_version.repo_version_id ORDER BY version, host_id;
>  host_id |   version   |   state
> ---------+-------------+-----------
>        1 | 2.4.2.0-236 | INSTALLED
>        2 | 2.4.2.0-236 | INSTALLED
>        3 | 2.4.2.0-236 | INSTALLED
>        1 | 2.5.4.0-121 | CURRENT
>        2 | 2.5.4.0-121 | CURRENT
>        3 | 2.5.4.0-121 | CURRENT
> (6 rows)
> {code}
> In the event that {{STORM}} is not installed on all hosts, finalization fails:
> h6. Topology (HDP 2.4.2.0-236)
> - c6401 - ZooKeeper Server, ZooKeeper Client, Storm Nimbus
> - c6402 - ZooKeeper Server, ZooKeeper Client, Storm Supervisor
> - c6403 - ZooKeeper Server, ZooKeeper Client
> {noformat}
> Begin finalizing the upgrade of cluster c1 to version 2.5.4.0-121
> The following 1 host(s) have not been upgraded to version 2.5.4.0-121. Please install and upgrade the Stack Version on those hosts and try again.
> Hosts: c6403.ambari.apache.org
> {noformat}
> The {{host_version}} table must allow for multiple {{CURRENT}} versions. Finalization must be allowed to occur when not all hosts are targeted for upgrade. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)