Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21175

Host Versions Remain on CURRENT During STANDARD (Full) Upgrades

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • ambari-server
    • None

    Description

      Host versions were changed for patch upgrades to allow multiple CURRENT repositories per host. However, it seems that a case was missed where, during a full upgrade, the prior repository is never set to INSTALLED. This was the behavior which existed previously.

      STR:

      • Install a cluster with ZK and HDFS on HDP 2.5
      • Perform an upgrade to HDP 2.6 and Finalize

      After the upgrade, the host_version table contains CURRENT entries for both the HDP 2.5 and 2.6 repositories.

      ambari=# select state, stack_id, version, display_name from host_version, repo_version WHERE host_version.repo_version_id = repo_version.repo_version_id ;
         state   | stack_id |   version    |   display_name
      -----------+----------+--------------+------------------
       CURRENT   |       13 | 2.5.0.0-1237 | HDP-2.5.0.0-1237
       CURRENT   |       13 | 2.5.0.0-1237 | HDP-2.5.0.0-1237
       CURRENT   |       13 | 2.5.0.0-1237 | HDP-2.5.0.0-1237
       CURRENT   |       12 | 2.6.0.0-334  | HDP-2.6.0.0-334
       CURRENT   |       12 | 2.6.0.0-334  | HDP-2.6.0.0-334
       CURRENT   |       12 | 2.6.0.0-334  | HDP-2.6.0.0-334
      (6 rows)
      

      Attachments

        1. AMBARI-21175.patch
          17 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: