You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/11/18 22:34:11 UTC

[jira] [Commented] (AMBARI-13953) Config types, incorrect number of selected=1

    [ https://issues.apache.org/jira/browse/AMBARI-13953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15012030#comment-15012030 ] 

Hudson commented on AMBARI-13953:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #3863 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3863/])
AMBARI-13953. Config types, incorrect number of selected=1. (mpapyrkovskyy: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f90c2b04357b4ab0e3e704438f8e8f921a5ed97f])
* ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog170.java
* ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterConfigEntity.java
* ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog150.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterEntity.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClusterDAO.java


> Config types, incorrect number of selected=1
> --------------------------------------------
>
>                 Key: AMBARI-13953
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13953
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Myroslav Papirkovskyy
>            Assignee: Myroslav Papirkovskyy
>            Priority: Critical
>             Fix For: 2.1.3
>
>
> There were cases where the config mappings are not correct and missing to have exactly one with selected=1.
> Example:
> {noformat}
> 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)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)