[
https://issues.apache.org/jira/browse/AMBARI-20832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15982711#comment-15982711
]
Hudson commented on AMBARI-20832:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #7348 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/7348/])
AMBARI-20832. Desired configs fetched in loop via (adoroszlai:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=ed612008ab664f59a06a5c609dfbe317c6a59948])
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostResourceProvider.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostResourceProviderTest.java
> 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)