MAPREDUCE-7136. TestMRAppMetrics should shutdown DefaultMetricsSystem after completion. Contributed by Oleksandr Shevchenko
This commit is contained in:
parent
8ffbbf51c9
commit
598380ad5a
@ -24,12 +24,19 @@
|
|||||||
|
|
||||||
import static org.apache.hadoop.test.MetricsAsserts.*;
|
import static org.apache.hadoop.test.MetricsAsserts.*;
|
||||||
|
|
||||||
|
import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem;
|
||||||
|
import org.junit.After;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.mockito.Mockito.*;
|
import static org.mockito.Mockito.*;
|
||||||
|
|
||||||
public class TestMRAppMetrics {
|
public class TestMRAppMetrics {
|
||||||
|
|
||||||
|
@After
|
||||||
|
public void tearDown() {
|
||||||
|
DefaultMetricsSystem.shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
@Test public void testNames() {
|
@Test public void testNames() {
|
||||||
Job job = mock(Job.class);
|
Job job = mock(Job.class);
|
||||||
Task mapTask = mock(Task.class);
|
Task mapTask = mock(Task.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user