Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7154

TestMetrics fails intermittently on the trunk

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: Tests
    • Labels:
      None

      Description

      TestMetrics fails intermittently on trunk, with:

      java.io.IOException: No metrics scope named foo
      	at org.apache.hadoop.hive.common.metrics.Metrics.getScope(Metrics.java:222)
      	at org.apache.hadoop.hive.common.metrics.TestMetrics.testScopeConcurrency(TestMetrics.java:215)
      

      Not able to prove it, but seems like it may depend on the test order. For example, if I just run "testScopeConcurrency" by itself then it fails because the metric is not initialized. If I run the entire test then it will succeed because the metric is initialized by the other tests.

        Attachments

        1. HIVE-7154.2.patch
          1 kB
          Szehon Ho
        2. HIVE-7154.patch
          1 kB
          Szehon Ho

          Activity

            People

            • Assignee:
              szehon Szehon Ho
              Reporter:
              szehon Szehon Ho
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: