Details
Description
TestMetricsSystemImpl#testMultiThreadedPublish and testInitFirstVerifyStopInvokedImmediately fails occasionally.
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)
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)
Attachments
Issue Links
- is duplicated by
-
HADOOP-10062 race condition in MetricsSystemImpl#publishMetricsNow that causes incorrect results
- Closed
-
HADOOP-10058 TestMetricsSystemImpl#testInitFirstVerifyStopInvokedImmediately fails on trunk
- Closed