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.