ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14471) Expose UpgradeItem Display Status In API Requests
Date Wed, 23 Dec 2015 01:06:46 GMT

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

Hudson commented on AMBARI-14471:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #4083 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4083/])
AMBARI-14471 - Expose UpgradeItem Display Status In API Requests (jhurley: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c947fcdf93ec4da8be0654b85fb1ddb467fc239b])
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeItemResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/CalculatedStatus.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/StageResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StageResourceProvider.java


> Expose UpgradeItem Display Status In API Requests
> -------------------------------------------------
>
>                 Key: AMBARI-14471
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14471
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.2.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.2.1
>
>         Attachments: AMBARI-14471.patch
>
>
> When retrieving information about an upgrade, there is a {{display_status}} field used
for {{UpgradeGroup}}. Within an {{UpgradeGroup}} there are {{UpgradeItem}} instances which
have {{task}} instances.
> The {{UpgradeItem}} doesn't have a {{display_status}} which can cause problems when the
tasks failed and were skipped since we show the encompassing item as COMPLETED (green).
> This Jira is to track {{UpgradeItem/display_status}} being added to the API.
> {code}
> {
>   "href": "http://localhost:8080/api/v1/clusters/c1/upgrades/23/upgrade_groups/4?fields=upgrade_items/UpgradeItem/display_status,upgrade_items/UpgradeItem/status",
>   "UpgradeGroup": {
>     "group_id": 4,
>     "request_id": 23
>   },
>   "upgrade_items": [
>     {
>       "href": "http://localhost:8080/api/v1/clusters/c1/upgrades/23/upgrade_groups/4/upgrade_items/7",
>       "UpgradeItem": {
>         "cluster_name": "c1",
>         "group_id": 4,
>         "request_id": 23,
>         "stage_id": 7,
>         "display_status": "FAILED",
>         "status": "COMPLETED"
>       }
>     },
>     {
>       "href": "http://localhost:8080/api/v1/clusters/c1/upgrades/23/upgrade_groups/4/upgrade_items/8",
>       "UpgradeItem": {
>         "cluster_name": "c1",
>         "group_id": 4,
>         "request_id": 23,
>         "stage_id": 8,
>         "display_status": "COMPLETED",
>         "status": "COMPLETED"
>       }
>     }
>   ]
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message