YARN-27. Fixed location of ms.start call

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1375083 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Graves 2012-08-20 16:04:03 +00:00
parent bc538e100a
commit ea7af8f76e

View File

@ -238,11 +238,11 @@ public void testQueueAppMetricsForMultipleFailures() {
@Test @Test
public void testMetricsCache() { public void testMetricsCache() {
MetricsSystem ms = new MetricsSystemImpl("cache"); MetricsSystem ms = new MetricsSystemImpl("cache");
ms.start();
try { try {
String p1 = "root1"; String p1 = "root1";
String leafQueueName = "root1.leaf"; String leafQueueName = "root1.leaf";
ms.start();
QueueMetrics p1Metrics = QueueMetrics p1Metrics =
QueueMetrics.forQueue(ms, p1, null, true, conf); QueueMetrics.forQueue(ms, p1, null, true, conf);