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 "Xiao Chen (JIRA)" <ji...@apache.org> on 2017/10/16 19:16:00 UTC

[jira] [Updated] (HADOOP-14953) MetricsSystemImpl should consistently check minicluster mode

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

Xiao Chen updated HADOOP-14953:
-------------------------------
    Target Version/s: 3.0.0  (was: 2.9.0)

> MetricsSystemImpl should consistently check minicluster mode
> ------------------------------------------------------------
>
>                 Key: HADOOP-14953
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14953
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>            Reporter: Xiao Chen
>            Priority: Minor
>
> Found this when writing some tests related to JvmMetrics.
> It appears {{JvmMetrics.initSingleton}} twice in minicluster works, but {{JvmMetrics.create}} twice doesn't.
> This jira suggests to investigate whether this is intentional, and likely make the check of {{DefaultMetricsSystem.inMiniClusterMode()}} consistent in {{MetricsSystemImpl}} to ease testing.
> {noformat}
> org.apache.hadoop.metrics2.MetricsException: Metrics source JvmMetrics already exists!
>         at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.newSourceName(DefaultMetricsSystem.java:152)
>         at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.sourceName(DefaultMetricsSystem.java:125)
>         at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.register(MetricsSystemImpl.java:229)
>         at org.apache.hadoop.metrics2.source.JvmMetrics.create(JvmMetrics.java:95)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org