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

Calculation of versionAdvertised in is incorrect in metainfo.xml when parent is false and current ComponentInfo is true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server
    • None

    Description

      Fresh install of HDP 2.5 does not have a version for ATLAS_SERVER or ATLAS_CLIENT in the database (hostcomponentstate table) because ATLAS has advertise_version as "false".

      Atlas in common-services for has the following,
      0.1.0.2.3 has versionAdvertised=false
      0.7.0.2.5 has versionAdvertised=true

      However, the current logic in ComponentModule always take the value of the parent, which is incorrect.

      To fix this, if the current component has false, then take the value of the parent.

      The ideal way to do this is to use another variable (a string) to read from the xml file so we can store "true", "false", null. If that variable is null, then inherit from the parent.

      Attachments

        1. AMBARI-18070.patch
          13 kB
          Alejandro Fernandez

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: