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

Config types, incorrect number of selected=1

    XMLWordPrintableJSON

Details

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

    Description

      There were cases where the config mappings are not correct and missing to have exactly one with selected=1.
      Example:

      SELECT * FROM clusterconfigmapping where type_name IN ('hcat-env', 'yarn-log4j') AND selected = 1 ORDER BY type_name, version_tag;
      
       cluster_id | type_name  |     version_tag      | create_timestamp | selected | user_name
      ------------+------------+----------------------+------------------+----------+-----------
                3 | hcat-env   | version1431716831430 |    1431959964265 |        1 | admin
                3 | hcat-env   | version1431716831430 |    1433207305120 |        1 | admin
                3 | hcat-env   | version1431716831430 |    1433251781701 |        1 | admin
                3 | hcat-env   | version1431716831430 |    1433251998955 |        1 | admin
                3 | hcat-env   | version1431716831430 |    1431716833973 |        1 | admin
                3 | yarn-log4j | version1             |    1429645142689 |        1 | admin
                3 | yarn-log4j | version1             |    1431258023338 |        1 | admin
                3 | yarn-log4j | version1             |    1440110656390 |        1 | admin
                3 | yarn-log4j | version1             |    1440110734482 |        1 | admin
                3 | yarn-log4j | version1             |    1440111711716 |        1 | admin
      (10 rows)
      

      Attachments

        Issue Links

          Activity

            People

              mpapirkovskyy Papirkovskyy Myroslav
              mpapirkovskyy Papirkovskyy Myroslav
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: