[ https://issues.apache.org/jira/browse/AMBARI-18070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Fernandez updated AMBARI-18070: ----------------------------------------- Status: Patch Available (was: Open) > Calculation of versionAdvertised in is incorrect in metainfo.xml when parent > is false and current ComponentInfo is true > ----------------------------------------------------------------------------------------------------------------------- > > Key: AMBARI-18070 > URL: https://issues.apache.org/jira/browse/AMBARI-18070 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Alejandro Fernandez > Assignee: Alejandro Fernandez > Priority: Blocker > Fix For: 2.4.0 > > Attachments: AMBARI-18070.patch > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)