Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-22604

Fix hostConfigMappingEntity cluster_id, concurrency in ClusterImpl and serviceConfigTypes initialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • ambari-server
    • 3.0.0
    • ambari-server
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              dsen Dmytro Sen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: