You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ray Chiang (JIRA)" <ji...@apache.org> on 2014/09/19 07:09:35 UTC

[jira] [Updated] (HADOOP-8757) Metrics should disallow names with invalid characters

     [ https://issues.apache.org/jira/browse/HADOOP-8757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ray Chiang updated HADOOP-8757:
-------------------------------
    Attachment: HADOOP-8757-01.patch

Add check for whitespace.  Add unit test passing a few metric names containing whitespace.

> Metrics should disallow names with invalid characters
> -----------------------------------------------------
>
>                 Key: HADOOP-8757
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8757
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: metrics
>    Affects Versions: 2.0.0-alpha, 3.0.0
>            Reporter: Todd Lipcon
>            Priority: Minor
>              Labels: newbie
>         Attachments: HADOOP-8757-01.patch
>
>
> Just spent a couple hours trying to figure out why a metric I added didn't show up in JMX, only to eventually realize it was because I had a whitespace in the property name. This didn't cause any errors to be logged -- the metric just didn't show up in JMX. We should check that the name is valid and log an error, or replace invalid characters with something like an underscore.



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