This is an automated email from the ASF dual-hosted git repository.

aajisaka pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new d2c02f5  MAPREDUCE-7311. Clear filesystem statistics after tests in 
TestTaskProgressReporter (#2500)
d2c02f5 is described below

commit d2c02f5afc8c416e96c0b283c658ee2a22caf873
Author: lzx404243 <[email protected]>
AuthorDate: Wed Sep 1 00:47:09 2021 -0400

    MAPREDUCE-7311. Clear filesystem statistics after tests in 
TestTaskProgressReporter (#2500)
    
    Co-authored-by: Zhengxi Li <[email protected]>
    (cherry picked from commit 6187f76f11e885023c99382f0fd18f8fea8bcbb6)
---
 .../java/org/apache/hadoop/mapred/TestTaskProgressReporter.java     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestTaskProgressReporter.java
 
b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestTaskProgressReporter.java
index 6d34270..52875b7 100644
--- 
a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestTaskProgressReporter.java
+++ 
b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestTaskProgressReporter.java
@@ -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;
 
@@ -179,6 +180,11 @@ public class TestTaskProgressReporter {
     }
   }
 
+  @After
+  public void cleanup() {
+    FileSystem.clearStatistics();
+  }
+
   @Test(timeout=60000)
   public void testScratchDirSize() throws Exception {
     String tmpPath = TEST_DIR + "/testBytesWrittenLimit-tmpFile-"

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to