Forráskód Böngészése

MAPREDUCE-4914. TestMiniMRDFSSort fails with openJDK7. Contributed by Brandon Li.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1429638 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 12 éve
szülő
commit
66987569dc

+ 3 - 0
CHANGES.txt

@@ -398,6 +398,9 @@ Release 1.2.0 - unreleased
     MAPREDUCE-4916. Fix flaxy test TestTrackerDistributedCacheManager. (Xuan
     Gong via acmurthy) 
 
+    MAPREDUCE-4914. TestMiniMRDFSSort fails with openJDK7. (Brandon Li via
+    suresh)
+
 Release 1.1.2 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 3 - 6
src/test/org/apache/hadoop/mapred/TestMiniMRDFSSort.java

@@ -167,13 +167,10 @@ public class TestMiniMRDFSSort extends TestCase {
     // Run sort-validator to check if sort worked correctly
     runSortValidator(mrCluster.createJobConf(), SORT_INPUT_PATH, 
                      SORT_OUTPUT_PATH);
-  }
-  
-  public void testJvmReuse() throws Exception {
+    // test JVM reuse
     runJvmReuseTest(mrCluster.createJobConf(), true);
-  }
-
-  public void testNoJvmReuse() throws Exception {
+    
+    // test no JVM reuse
     runJvmReuseTest(mrCluster.createJobConf(), false);
   }
 }