Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9990

TestMetricsSystemImpl fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.1.1-beta
    • Fix Version/s: None
    • Component/s: metrics, test
    • Labels:
      None
    • Environment:

      Ubuntu 13.04

      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

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ozawa Tsuyoshi Ozawa
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: