[
https://issues.apache.org/jira/browse/AMBARI-9939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14349654#comment-14349654
]
Hudson commented on AMBARI-9939:
--------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #1962 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/1962/])
AMBARI-9939. RU - Service Check group to include all services with a
service_check script (alejandro) (afernandez:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=4dc9a3087b7a42f45c6cf0019c628a4fc3c69f20)
*
ambari-server/src/test/java/org/apache/ambari/server/state/UpgradeHelperTest.java
*
ambari-server/src/test/java/org/apache/ambari/server/stack/StackManagerTest.java
* ambari-server/src/test/resources/stacks/HDP/2.1.1/services/PIG/metainfo.xml
* ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeContext.java
* ambari-server/src/test/resources/stacks/HDP/2.1.1/services/TEZ/metainfo.xml
*
ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/ServiceCheckGrouping.java
> RU - Service Check group to include all services with a service_check script
> ----------------------------------------------------------------------------
>
> Key: AMBARI-9939
> URL: https://issues.apache.org/jira/browse/AMBARI-9939
> 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-9939.patch
>
>
> Installed a minimal 3-node cluster with HDFS, MR, YARN, Pig, Tez.
> Performed an RU.
> Expected result is for the last service check to be ran on all components.
> However, it skipped Pig Service Check.
> http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8
> {code}
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8",
> "UpgradeGroup" : {
> "completed_task_count" : 4,
> "group_id" : 8,
> "in_progress_task_count" : 0,
> "name" : "SERVICE_CHECK",
> "progress_percent" : 100.0,
> "request_id" : 32,
> "status" : "COMPLETED",
> "title" : "All Service Checks",
> "total_task_count" : 4
> },
> "upgrade_items" : [
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8/upgrade_items/47",
> "UpgradeItem" : {
> "cluster_name" : "c1",
> "group_id" : 8,
> "request_id" : 32,
> "stage_id" : 47
> }
> },
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8/upgrade_items/48",
> "UpgradeItem" : {
> "cluster_name" : "c1",
> "group_id" : 8,
> "request_id" : 32,
> "stage_id" : 48
> }
> },
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8/upgrade_items/49",
> "UpgradeItem" : {
> "cluster_name" : "c1",
> "group_id" : 8,
> "request_id" : 32,
> "stage_id" : 49
> }
> },
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8/upgrade_items/50",
> "UpgradeItem" : {
> "cluster_name" : "c1",
> "group_id" : 8,
> "request_id" : 32,
> "stage_id" : 50
> }
> }
> ]
> }
> {code}
> http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8/upgrade_items?fields=UpgradeItem/text
> {code}
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8/upgrade_items?fields=UpgradeItem/text",
> "items" : [
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8/upgrade_items/47",
> "UpgradeItem" : {
> "cluster_name" : "c1",
> "group_id" : 8,
> "request_id" : 32,
> "stage_id" : 47,
> "text" : "Service Check HDFS"
> }
> },
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8/upgrade_items/48",
> "UpgradeItem" : {
> "cluster_name" : "c1",
> "group_id" : 8,
> "request_id" : 32,
> "stage_id" : 48,
> "text" : "Service Check YARN"
> }
> },
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8/upgrade_items/49",
> "UpgradeItem" : {
> "cluster_name" : "c1",
> "group_id" : 8,
> "request_id" : 32,
> "stage_id" : 49,
> "text" : "Service Check ZooKeeper"
> }
> },
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/upgrades/32/upgrade_groups/8/upgrade_items/50",
> "UpgradeItem" : {
> "cluster_name" : "c1",
> "group_id" : 8,
> "request_id" : 32,
> "stage_id" : 50,
> "text" : "Service Check MapReduce2"
> }
> }
> ]
> }
> {code}
> The Upgrade Pack contains,
> {code}
> <group name="SERVICE_CHECK" title="All Service Checks"
> xsi:type="service-check">
> <skippable>true</skippable>
> <direction>UPGRADE</direction>
> <priority>
> <service>HDFS</service>
> <service>YARN</service>
> <service>HBASE</service>
> </priority>
> </group>
> {code}
> Because the pig service check was not ran, the new tez tarball was not copied
> to HDFS.
> The underlying issue is that a service is not added to the Service Check
> group if it is a clientOnly service. However, Pig is clientOnly but still
> have a service check python script.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)