瀏覽代碼

MAPREDUCE-4967. TestJvmReuse fails on assertion. (kkambatl via tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1442828 13f79535-47bb-0310-9956-ffa450edef68
Alejandro Abdelnur 12 年之前
父節點
當前提交
faf771e89a
共有 2 個文件被更改,包括 9 次插入4 次删除
  1. 2 0
      CHANGES.txt
  2. 7 4
      src/test/org/apache/hadoop/mapred/TestJvmReuse.java

+ 2 - 0
CHANGES.txt

@@ -471,6 +471,8 @@ Release 1.2.0 - unreleased
     MAPREDUCE-4843. When using DefaultTaskController, JobLocalizer not thread 
     safe. (kkambatl via tucu)
 
+    MAPREDUCE-4967. TestJvmReuse fails on assertion. (kkambatl via tucu)
+
 Release 1.1.2 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 7 - 4
src/test/org/apache/hadoop/mapred/TestJvmReuse.java

@@ -17,11 +17,12 @@
  */
 package org.apache.hadoop.mapred;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
 import java.io.DataOutputStream;
 import java.io.IOException;
 
-import junit.framework.TestCase;
-
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.fs.Path;
@@ -29,9 +30,9 @@ import org.apache.hadoop.io.IntWritable;
 import org.apache.hadoop.io.LongWritable;
 import org.apache.hadoop.io.Text;
 import org.junit.Ignore;
+import org.junit.Test;
 
-@Ignore
-public class TestJvmReuse extends TestCase {
+public class TestJvmReuse {
   private static Path rootDir = new Path(System.getProperty("test.build.data",
       "/tmp"), TestJvmReuse.class.getName());
   private int numMappers = 5;
@@ -141,6 +142,8 @@ public class TestJvmReuse extends TestCase {
     }
   }
 
+  @Ignore
+  @Test
   public void testTaskLogs() throws IOException {
     MiniMRCluster mr = null;
     try {