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

RU - Bug fixes for Host Version transition and Finalize

    XMLWordPrintableJSON

Details

    Description

      1. There is a bug in ServiceComponentHostSummary.java since its constructor should not be comparing against the string UKNOWN, but rather rely on ComponentInfo to determine which components need to advertise a version. Also, the function haveAllComponentsFinishedAdvertisingVersion should instead compare the size of all components that can advertise a version, and the subset of those that have done so already.

      2. ClusterImpl.java has a bug in transitionHostVersionState() when setting the state to UPGRADING if the Host has exactly one Component with a version.

      3. FinalizeUpgradeAction.java has redundant code now that AMBARI-9755 is in because the call to transitionClusterVersion() will also take care of transitioning HostVersions from INSTALLED->CURRENT for hosts that only have components that do not advertise a version.

      It is of the utmost importance to test these changes in the following scenarios:
      Host added during cluster install
      Host added after cluster install
      Host added after bits are distributed

      A Host may be added with either 0 services, only services that do not advertise a version, or at least one service that advertises a version.

      Attachments

        1. AMBARI-9805.patch
          92 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: