You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2017/04/28 21:40:04 UTC

[jira] [Created] (AMBARI-20894) Setting Desired Stack Ids to Correct Values During Service and Patch Upgrades

Jonathan Hurley created AMBARI-20894:
----------------------------------------

             Summary: 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


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)