Prechádzať zdrojové kódy

MAPREDUCE-4915. TestShuffleExceptionCount fails with open JDK7. Contributed by Brandon Li.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1429641 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 12 rokov pred
rodič
commit
a2791d181d

+ 3 - 0
CHANGES.txt

@@ -401,6 +401,9 @@ Release 1.2.0 - unreleased
     MAPREDUCE-4914. TestMiniMRDFSSort fails with openJDK7. (Brandon Li via
     suresh)
 
+    MAPREDUCE-4915. TestShuffleExceptionCount fails with open JDK7.
+    (Brandon Li via suresh)
+
 Release 1.1.2 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 6 - 0
src/test/org/apache/hadoop/mapred/TestShuffleExceptionCount.java

@@ -23,6 +23,7 @@ import static org.junit.Assert.assertTrue;
 
 import java.io.IOException;
 
+import org.junit.BeforeClass;
 import org.junit.Test;
 
 public class TestShuffleExceptionCount {
@@ -30,6 +31,11 @@ public class TestShuffleExceptionCount {
   static boolean abortCalled = false;
   private final float epsilon = 1e-5f;
 
+  @BeforeClass
+  public static void initialize() throws Exception {
+    abortCalled = false;
+  }
+    
   public static class TestShuffleExceptionTracker extends ShuffleExceptionTracker {
     private static final long serialVersionUID = 1L;