ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Fernandez" <>
Subject Re: Review Request 31457: [PREVIEW] RU - Bug fixes for Host Version transition and Finalize
Date Thu, 26 Feb 2015 02:24:54 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Feb. 26, 2015, 2:24 a.m.)

Review request for Ambari, Dmitro Lisnichenko, Jonathan Hurley, Nate Cole, and Tom Beerbower.

Bugs: AMBARI-9805

Repository: ambari


1. There is a bug in since its constructor should not be
comparing against the string UKNOWN, but rather rely on ComponentInfo to determine which components
need to advertise a version. Also, the function haveAllComponentsFinishedAdvertisingVersion
should instead compare the size of all components that can advertise a version, and the subset
of those that have done so already.
2. has a bug in transitionHostVersionState() when setting the state to UPGRADING
if the Host has exactly one Component with a version.
3. has redundant code now that AMBARI-9755 is in because the call
to transitionClusterVersion() will also take care of transitioning HostVersions from INSTALLED->CURRENT
for hosts that only have components that do not advertise a version.

It is of the utmost importance to test these changes in the following scenarios:
Host added during cluster install
Host added after cluster install
Host added after bits are distributed

A Host may be added with either 0 services, only services that do not advertise a version,
or at least one service that advertises a version.


  ambari-server/src/main/java/org/apache/ambari/server/state/ 6b8a917 
  ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ b2ba43b




Verified on a live cluster.
1. Installed HDP version 2450 with HDFS and ZK on 3 hosts (c6404, c6405, c6406)
2. All three hosts transitioned the HostVersion from UPGRADING->CURRENT, and the ClusterVersion
3. Added a service (MR + YARN), and Host Component States got added with version of UNKNOWN
They all finally reported a version, but no changes needed in HostVersions or ClusterVersion
4. Added new host, c6407 with no services.
Then, added only HDFS client to it.
Which picked up HostVersion in CURRENT and the HostComponentState had a valid version (
5. Added another host (c6408) with no components. Add Ganglia service, which does not advertise
a version. This host did not yet have a HostVersion
6. Registered a Repo and distributed bits for All Hosts then had HostVersion
for the new repo with a state of INSTALLED
7. Added yet one more host that will only have Ganglia Monitor (c6409). It then had a HostVersion
in OUT_OF_SYNC, and the ClusterVersion was also OUT_OF_SYNC
8. Redistributed bits, all hosts then had INSTALLED for the new version, but only 4/6 hosts
have a HostVersion for
9. Performed an RU. Before Finalize, all but the last 2 hosts were in UPGRADED, but the last
2 hosts still had a HostVersion in INSTALLED.
10. Finalize succeeded

Still need to write unit tests


Alejandro Fernandez

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message