MAPREDUCE-7311. Clear filesystem statistics after tests in TestTaskProgressReporter (#2500)
Co-authored-by: Zhengxi Li <zli89@illinois.edu>
(cherry picked from commit 6187f76f11
)
This commit is contained in:
parent
7aea2e1b5c
commit
8f70d48d14
|
@ -34,6 +34,7 @@ import org.apache.hadoop.mapreduce.MRConfig;
|
|||
import org.apache.hadoop.mapreduce.MRJobConfig;
|
||||
import org.apache.hadoop.mapreduce.checkpoint.TaskCheckpointID;
|
||||
import org.apache.hadoop.util.ExitUtil;
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -177,6 +178,11 @@ public class TestTaskProgressReporter {
|
|||
}
|
||||
}
|
||||
|
||||
@After
|
||||
public void cleanup() {
|
||||
FileSystem.clearStatistics();
|
||||
}
|
||||
|
||||
@Test(timeout=60000)
|
||||
public void testScratchDirSize() throws Exception {
|
||||
String tmpPath = TEST_DIR + "/testBytesWrittenLimit-tmpFile-"
|
||||
|
|
Loading…
Reference in New Issue