You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Dmytro Sen (JIRA)" <ji...@apache.org> on 2017/12/06 14:19:00 UTC

[jira] [Created] (AMBARI-22604) Fix hostConfigMappingEntity cluster_id, concurrency in ClusterImpl and serviceConfigTypes initialization

Dmytro Sen created AMBARI-22604:
-----------------------------------

             Summary: Fix hostConfigMappingEntity cluster_id, concurrency in ClusterImpl and serviceConfigTypes initialization
                 Key: AMBARI-22604
                 URL: https://issues.apache.org/jira/browse/AMBARI-22604
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: ambari-server
            Reporter: Dmytro Sen
            Assignee: Dmytro Sen
            Priority: Critical
             Fix For: 3.0.0




1) HostConfigMappingEntity is not correct. You can't use same field cluster_id for current entity and for joined columns. Use ClusterTest.testDesiredConfig() to see this issue.

2) As you can see in ClusterImpl we are using concurrent maps/lists and locks in methods. Please do the same for your code chnages.

3) Initialize map serviceConfigTypes, it will prevent many NPE and additional check for NULL.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)