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

Stack Upgrade should allow suspended=false when aborting an upgrade to initiate a downgrade

    XMLWordPrintableJSON

Details

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

    Description

      STR:

      • Installed Ambari ambari-server-2.2.2.0-354.x86_64
      • HDP 2.3.0.0-2557
      • Installed bits for HDP 2.4.0.0-169
      • Performed EU
      • It failed on waiting to leave HDFS Safemode, but you can do this on any manual stage, such as Pre-Finalize; click the "Downgrade" button

      Notice that the current Upgrade did not get ABORTED.
      I had to manually run,

      update host_role_command set status = 'ABORTED' WHERE  request_id = ? and status IN ('PENDING', 'HOLDING_FAILED');
      

      Root cause is that UpgradeResourceProvider was expecting both these properties to be passed as "status=ABORTED" & "suspended=true".
      The UI was passing "status=ABORTED" & "suspended=false", which is correct because it was used to initiate a Downgrade.

      Attachments

        1. AMBARI-15673.branch-2.2.patch
          3 kB
          Alejandro Fernandez
        2. AMBARI-15673.trunk.patch
          3 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: