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

If RU/EU is paused, services are restarted on the older version. EU is more complex since stopping services should use the original version.

    XMLWordPrintableJSON

Details

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

    Description

      Currently, if RU/EU is paused, then restarting services manually will use the version whose state is CURRENT. This means that services may be restarted on the wrong version, preventing Ambari from correctly Finalizing the upgrade.

      Instead, the logic should be as follows during Upgrade:
      RU: always use to_version
      EU: if haven't completed the action "UPDATE_DESIRED_STACK_ID", then use the from_version, otherwise, use the to_version.

      During Downgrade, both should use the original version, which is actually the to_version column in the upgrade table.

      Assertions:
      A: restart a service (should have version parameter,
      B: run a service check (no version needed)
      C: run HDFS Rebalance (should have version parameter).

      Test Cases:
      1. Before stack upgrade, run A, B, and C, which should all use the current version
      2. EU, immediately click pause. Run A, B, and C, which should use the original version if it exists
      3. EU, after the services have been stopped and the stack has been upgraded. Run A, B, and C, which should use the new version since the services are now to be started.
      4. EU, click downgrade and pause. Run A, B, C, which should use the original version.
      5. RU, click pause whenever a manual task occurs. Run A, B, and C, which should use the destination version.
      6. RU, click downgrade. Run A, B, and C, which should use the original version.

      Attachments

        1. AMBARI-15637.branch-2.2.patch
          33 kB
          Alejandro Fernandez
        2. AMBARI-15637.trunk.patch
          33 kB
          Alejandro Fernandez

        Issue Links

          Activity

            People

              afernandez Alejandro Fernandez
              afernandez Alejandro Fernandez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: