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 "Shinichi Yamashita (JIRA)" <ji...@apache.org> on 2013/11/08 11:27:17 UTC

[jira] [Updated] (HADOOP-10062) TestMetricsSystemImpl#testMultiThreadedPublish fails on trunk

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

Shinichi Yamashita updated HADOOP-10062:
----------------------------------------

    Attachment: HADOOP-10062.patch

I confirmed the change of the value in the test.
And I confirmed that there was the case which a order of the handling of MetricsSystemImpl#publishMetrics reversed.
This problem can be solved by synchronizing MetricsSystemImpl#publishMetricsNow.

I attach a patch file.


> TestMetricsSystemImpl#testMultiThreadedPublish fails on trunk
> -------------------------------------------------------------
>
>                 Key: HADOOP-10062
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10062
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 3.0.0
>         Environment: CentOS 6.4, Oracle JDK 1.6.0_31
>            Reporter: Shinichi Yamashita
>            Priority: Minor
>         Attachments: HADOOP-10062.patch
>
>
> TestMetricsSystemInpl#testMultiThreadedPublish failed with "Metrics not collected"
> {code}
> Running org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl
> Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.688 sec <<< FAILURE! - in org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl
> testMultiThreadedPublish(org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl)  Time elapsed: 0.056 sec  <<< FAILURE!
> java.lang.AssertionError: Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Passed
>         at org.junit.Assert.fail(Assert.java:93)
>         at org.junit.Assert.assertTrue(Assert.java:43)
>         at org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl.testMultiThreadedPublish(TestMetricsSystemImpl.java:232)
> Results :
> Failed tests:
>   TestMetricsSystemImpl.testMultiThreadedPublish:232 Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Metric not collected!
> Passed
> Tests run: 6, Failures: 1, Errors: 0, Skipped: 0
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)