incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nate Cole (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-2926) PropertyHelper.getPropertyCategory() does not account for replacement tokens in property id
Date Fri, 16 Aug 2013 02:14:50 GMT

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

Nate Cole commented on AMBARI-2926:
-----------------------------------

+1
                
> 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

Mime
View raw message