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

race condition in MetricsSystemImpl#publishMetricsNow that causes incorrect results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.7.0
    • metrics
    • None
    • CentOS 6.4, Oracle JDK 1.6.0_31, JDK1.7.0_45

    • Reviewed

    Description

      TestMetricsSystemInpl#testMultiThreadedPublish failed with "Metrics not collected"

      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
      
      

      Attachments

        1. HADOOP-10062-success.txt
          31 kB
          Shinichi Yamashita
        2. HADOOP-10062-failed.txt
          30 kB
          Shinichi Yamashita
        3. HADOOP-10062.patch
          2 kB
          Shinichi Yamashita
        4. HADOOP-10062.patch
          0.8 kB
          Shinichi Yamashita
        5. HADOOP-10062.003.patch
          2 kB
          Sangjin Lee

        Issue Links

          Activity

            People

              sjlee0 Sangjin Lee
              sinchii Shinichi Yamashita
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: