You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Isa Hekmatizadeh (Jira)" <ji...@apache.org> on 2020/03/23 08:50:00 UTC

[jira] [Created] (HDDS-3248) TestHddsDispatcher and TestHandler fails if run after other tests

Isa Hekmatizadeh created HDDS-3248:
--------------------------------------

             Summary: TestHddsDispatcher and TestHandler fails if run after other tests
                 Key: HDDS-3248
                 URL: https://issues.apache.org/jira/browse/HDDS-3248
             Project: Hadoop Distributed Data Store
          Issue Type: Test
            Reporter: Isa Hekmatizadeh


TestHddsDispatcher and TestHandler fails if run after other tests with a error like this:

 
{code:java}
org.apache.hadoop.metrics2.MetricsException: Metrics source StorageContainerMetrics 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.ozone.container.common.helpers.ContainerMetrics.create(ContainerMetrics.java:94) at org.apache.hadoop.ozone.container.common.impl.TestHddsDispatcher.createDispatcher(TestHddsDispatcher.java:271) at org.apache.hadoop.ozone.container.common.impl.TestHddsDispatcher.testCreateContainerWithWriteChunk(TestHddsDispatcher.java:156) ...
{code}
I think it's needed to call DefaultMetricsSystem.instance().shutdown() beforehand{color:#808080}
{color}

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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