You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Doroszlai, Attila (JIRA)" <ji...@apache.org> on 2017/04/24 14:36:04 UTC

[jira] [Updated] (AMBARI-20832) Desired configs fetched in loop via HostResourceProvider.getHosts

     [ https://issues.apache.org/jira/browse/AMBARI-20832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doroszlai, Attila updated AMBARI-20832:
---------------------------------------
    Attachment: AMBARI-20832.patch

> Desired configs fetched in loop via HostResourceProvider.getHosts
> -----------------------------------------------------------------
>
>                 Key: AMBARI-20832
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20832
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.2
>            Reporter: Doroszlai, Attila
>            Assignee: Doroszlai, Attila
>             Fix For: 3.0.0
>
>         Attachments: AMBARI-20832.patch
>
>
> {{HostResourceProvider#getHosts}} always passes {{desiredConfigs=null}} (for the cluster) to {{Host#getDesiredHostConfigs}}, and it does so in a loop.  This is due to typo (not assigning to local variable) in:
> {noformat:title=HostResourceProvider.java}
>  654     // retrieve the cluster desired configs once instead of per host
>  655     Map<String, DesiredConfig> desiredConfigs = null;
>  656     if (null != cluster) {
>  657       cluster.getDesiredConfigs();
>  658     }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)