ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-20894) Setting Desired Stack Ids to Correct Values During Service and Patch Upgrades
Date Wed, 03 May 2017 15:29:04 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-20894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Hurley updated AMBARI-20894:
-------------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> Setting Desired Stack Ids to Correct Values During Service and Patch Upgrades
> -----------------------------------------------------------------------------
>
>                 Key: AMBARI-20894
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20894
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: trunk
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: trunk
>
>         Attachments: AMBARI-20894.patch
>
>
> During a {{PATCH}} or {{SERVICE}} upgrade, only the desired stack IDs of the service/components
being upgraded should be updated. Currently, it is observed that:
> - {{hostcomponentdesiredstate}}/{{desired_stack_id}} is updated for all components
> - {{servicedesiredstate}}/{{desired_stack_id}} is updated for all services to new stack
> However, the {{hostcomponentstate}} table has the correctly values for {{version}} and
{{stack_id}}.
> h5. Example Upgrade of {{STORM}} from HDP 2.4 to HDP 2.5
> h6. Topology
> - c6401 - ZooKeeper Server, ZooKeeper Client, Storm Nimbus
> - c6402 - ZooKeeper Server, ZooKeeper Client, Storm Supervisor
> - c6403 - ZooKeeper Server, ZooKeeper Client, Storm Supervisor
> {code}
> ambari=# SELECT host_id, component_name, service_name, desired_stack_id, stack_name,
stack_version  FROM hostcomponentdesiredstate, stack WHERE hostcomponentdesiredstate.desired_stack_id
= stack.stack_id ORDER BY host_id, service_name, component_name, stack_version;
>  host_id |  component_name  | service_name | desired_stack_id | stack_name | stack_version
> ---------+------------------+--------------+------------------+------------+---------------
>        1 | DRPC_SERVER      | STORM        |                3 | HDP        | 2.5
>        1 | NIMBUS           | STORM        |                3 | HDP        | 2.5
>        1 | STORM_UI_SERVER  | STORM        |                3 | HDP        | 2.5
>        1 | SUPERVISOR       | STORM        |                3 | HDP        | 2.5
>        1 | ZOOKEEPER_CLIENT | ZOOKEEPER    |                3 | HDP        | 2.5
>        1 | ZOOKEEPER_SERVER | ZOOKEEPER    |                3 | HDP        | 2.5
>        2 | SUPERVISOR       | STORM        |                3 | HDP        | 2.5
>        2 | ZOOKEEPER_CLIENT | ZOOKEEPER    |                3 | HDP        | 2.5
>        2 | ZOOKEEPER_SERVER | ZOOKEEPER    |                3 | HDP        | 2.5
>        3 | SUPERVISOR       | STORM        |                3 | HDP        | 2.5
>        3 | ZOOKEEPER_CLIENT | ZOOKEEPER    |                3 | HDP        | 2.5
>        3 | ZOOKEEPER_SERVER | ZOOKEEPER    |                3 | HDP        | 2.5
> (12 rows)
> {code}
> {code}
> ambari=# SELECT service_name, stack_id, stack_version  FROM servicedesiredstate, stack
WHERE servicedesiredstate.desired_stack_id = stack.stack_id ORDER BY service_name, stack_version;
>  service_name | stack_id | stack_version
> --------------+----------+---------------
>  STORM        |        3 | 2.5
>  ZOOKEEPER    |        3 | 2.5
> (2 rows)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message