[
https://issues.apache.org/jira/browse/AMBARI-9805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14341738#comment-14341738
]
Hudson commented on AMBARI-9805:
--------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #1904 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/1904/])
AMBARI-9805. RU - Bug fixes for Host Version transition and Finalize
(alejandro) (afernandez:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=35a00d0d85c72b94b653164b1621a1f97e38ab38)
*
ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java
*
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
*
ambari-server/src/test/resources/stacks/HDP/2.0.5/services/ZOOKEEPER/metainfo.xml
*
ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java
*
ambari-server/src/test/resources/stacks/HDP/2.0.5/services/GANGLIA/metainfo.xml
* ambari-server/src/test/resources/stacks/HDP/2.2.0/services/HDFS/metainfo.xml
*
ambari-server/src/test/java/org/apache/ambari/server/stack/StackManagerTest.java
*
ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/FinalizeUpgradeAction.java
* ambari-server/src/test/resources/stacks/HDP/2.2.0/repos/repoinfo.xml
* ambari-server/src/test/resources/stacks/HDP/2.2.0/repos/hdp.json
*
ambari-server/src/test/resources/stacks/HDP/2.2.0/services/ZOOKEEPER/metainfo.xml
* ambari-server/src/test/resources/stacks/HDP/2.2.0/metainfo.xml
*
ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
*
ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostSummary.java
* ambari-server/src/test/resources/stacks/HDP/2.2.0/role_command_order.json
*
ambari-server/src/test/resources/stacks/HDP/2.2.0/services/GANGLIA/metainfo.xml
* ambari-server/src/test/resources/stacks/HDP/2.0.5/services/HDFS/metainfo.xml
> RU - Bug fixes for Host Version transition and Finalize
> -------------------------------------------------------
>
> Key: AMBARI-9805
> URL: https://issues.apache.org/jira/browse/AMBARI-9805
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.0.0
> Reporter: Alejandro Fernandez
> Assignee: Alejandro Fernandez
> Labels: rolling_upgrade
> Fix For: 2.0.0
>
> Attachments: AMBARI-9805.patch
>
>
> 1. There is a bug in ServiceComponentHostSummary.java 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. ClusterImpl.java has a bug in transitionHostVersionState() when setting
> the state to UPGRADING if the Host has exactly one Component with a version.
> 3. FinalizeUpgradeAction.java 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)