Tsuyoshi OZAWA created HADOOP-9990: -------------------------------------- Summary: TestMetricsSystemImpl fails Key: HADOOP-9990 URL: https://issues.apache.org/jira/browse/HADOOP-9990 Project: Hadoop Common Issue Type: Bug Components: metrics, test Affects Versions: 2.1.1-beta Environment: Ubuntu 13.04 Reporter: Tsuyoshi OZAWA Priority: Minor
TestMetricsSystemImpl#testMultiThreadedPublish and testInitFirstVerifyStopInvokedImmediately fails occasionally. {code} Running org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl Tests run: 6, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 2.787 sec <<< FAILURE! - in org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl testMultiThreadedPublish(org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl) Time elapsed: 0.078 sec <<< FAILURE! java.lang.AssertionError: expected:<0> but was:<2> at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:472) at org.junit.Assert.assertEquals(Assert.java:456) at org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl.testMultiThreadedPublish(TestMetricsSystemImpl.java:231) {code} {code} testInitFirstVerifyStopInvokedImmediately(org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl) Time elapsed: 0.05 sec <<< FAILURE! org.mockito.exceptions.base.MockitoAssertionError: Wanted at most 2 times but was 3 at org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl.testInitFirstVerifyStopInvokedImmediately(TestMetricsSystemImpl.java:114) {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira