Details
-
Task
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
trunk
-
None
Description
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.
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
SERVICE upgrade from to HDP-2.5.4.0-121 for STORM only:
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!
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)
In the event that STORM is not installed on all hosts, finalization fails:
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
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
The host_version table must allow for multiple CURRENT versions. Finalization must be allowed to occur when not all hosts are targeted for upgrade.
Attachments
Issue Links
- links to