Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 19C6518E22 for ; Wed, 18 Nov 2015 17:09:12 +0000 (UTC) Received: (qmail 9270 invoked by uid 500); 18 Nov 2015 17:09:11 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 9229 invoked by uid 500); 18 Nov 2015 17:09:11 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 9147 invoked by uid 99); 18 Nov 2015 17:09:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2015 17:09:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E50FA2C14FB for ; Wed, 18 Nov 2015 17:09:10 +0000 (UTC) Date: Wed, 18 Nov 2015 17:09:10 +0000 (UTC) From: "Myroslav Papirkovskyy (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-13953) Config types, incorrect number of selected=1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Myroslav Papirkovskyy created AMBARI-13953: ---------------------------------------------- Summary: 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)