You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2015/10/15 01:14:05 UTC

[jira] [Commented] (YARN-4264) In-VM test ATS instances fail with metrics already registered

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

Steve Loughran commented on YARN-4264:
--------------------------------------

stack
{code}
Exception encountered when invoking run on a nested suite - Metrics source TimelineDataManagerMetrics already exists! *** ABORTED ***
  org.apache.hadoop.metrics2.MetricsException: Metrics source TimelineDataManagerMetrics already exists!
  at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.newSourceName(DefaultMetricsSystem.java:143)
  at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.sourceName(DefaultMetricsSystem.java:120)
  at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.register(MetricsSystemImpl.java:229)
  at org.apache.hadoop.metrics2.MetricsSystem.register(MetricsSystem.java:71)
  at org.apache.hadoop.yarn.server.timeline.TimelineDataManagerMetrics.create(TimelineDataManagerMetrics.java:100)
  at org.apache.hadoop.yarn.server.timeline.TimelineDataManager.serviceInit(TimelineDataManager.java:74)
  at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
  at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
  at org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.serviceInit(ApplicationHistoryServer.java:104)
  at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
  ...
{code}

> In-VM test ATS instances fail with metrics already registered
> -------------------------------------------------------------
>
>                 Key: YARN-4264
>                 URL: https://issues.apache.org/jira/browse/YARN-4264
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: timelineserver
>    Affects Versions: 2.8.0
>            Reporter: Steve Loughran
>
> Testing my SPARK-1537 code against branch-2 triggers stack traces due to failed attempts to re-register metrics. This is with code which works against 2.7.1, so it's a regression.
> Either the timeline server needs to unregister its metrics on shutdown, or ATS adds an option to disable metrics for test purposes.



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