Bläddra i källkod

HADOOP-1258. Fix TestCheckpoint test case to wait for MiniDFSCluster to be active. Contributed by Nigel Daley.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@529380 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 18 år sedan
förälder
incheckning
5def3b74d7
2 ändrade filer med 5 tillägg och 0 borttagningar
  1. 4 0
      CHANGES.txt
  2. 1 0
      src/test/org/apache/hadoop/dfs/TestCheckpoint.java

+ 4 - 0
CHANGES.txt

@@ -207,6 +207,10 @@ Trunk (unreleased changes)
 62. HADOOP-1250.  Move a chmod utility from streaming to FileUtil.
     (omalley via cutting)
 
+63. HADOOP-1258.  Fix TestCheckpoint test case to wait for 
+    MiniDFSCluster to be active.  (Nigel Daley via tomwhite)
+
+
 Release 0.12.3 - 2007-04-06
 
  1. HADOOP-1162.  Fix bug in record CSV and XML serialization of

+ 1 - 0
src/test/org/apache/hadoop/dfs/TestCheckpoint.java

@@ -306,6 +306,7 @@ public class TestCheckpoint extends TestCase {
     // file1 does not exist.
     //
     cluster = new MiniDFSCluster(conf, numDatanodes, false, null);
+    cluster.waitActive();
     fileSys = cluster.getFileSystem();
 
     assertTrue(!fileSys.exists(file1));