ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doroszlai, Attila (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-20832) Desired configs fetched in loop via HostResourceProvider.getHosts
Date Tue, 25 Apr 2017 07:12:04 GMT

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

Doroszlai, Attila updated AMBARI-20832:
---------------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed to [trunk|http://git-wip-us.apache.org/repos/asf/ambari/commit/ed612008].

> 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)

Mime
View raw message