Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0663F107D5 for ; Fri, 16 Aug 2013 01:46:50 +0000 (UTC) Received: (qmail 25099 invoked by uid 500); 16 Aug 2013 01:46:49 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 25039 invoked by uid 500); 16 Aug 2013 01:46:49 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 25029 invoked by uid 99); 16 Aug 2013 01:46:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Aug 2013 01:46:48 +0000 Date: Fri, 16 Aug 2013 01:46:48 +0000 (UTC) From: "Tom Beerbower (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-2926) PropertyHelper.getPropertyCategory() does not account for replacement tokens in property id MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-2926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13741804#comment-13741804 ] Tom Beerbower commented on AMBARI-2926: --------------------------------------- mvn test -Dtest=org.apache.ambari.server.controller.utilities.PropertyHelperTest ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.ambari.server.controller.utilities.PropertyHelperTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.658 sec > PropertyHelper.getPropertyCategory() does not account for replacement tokens in property id > ------------------------------------------------------------------------------------------- > > Key: AMBARI-2926 > URL: https://issues.apache.org/jira/browse/AMBARI-2926 > Project: Ambari > Issue Type: Bug > Reporter: Tom Beerbower > Assignee: Tom Beerbower > Attachments: AMBARI-2926.patch > > > The utility method PropertyHelper.getPropertyCategory(propertyId) does not account for replacement tokens in property ids. These were recently added to allow for dynamic metric names. For example ... > {code} > metrics/yarn/Queue/$1.replaceAll(",q(\d+)=","/").substring(1) > {code} > Since the / character is used as a delimiter, the / in the replacement token method argument will cause the category for the above property id to be reported as ... > {code} > metrics/yarn/Queue/$1.replaceAll(",q(\d+)="," > {code} > ... instead of ... > {code} > metrics/yarn/Queue > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira