hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r413766 - /lucene/hadoop/trunk/src/test/org/apache/hadoop/dfs/MiniDFSCluster.java
Date Mon, 12 Jun 2006 23:29:48 GMT
Author: cutting
Date: Mon Jun 12 16:29:47 2006
New Revision: 413766

URL: http://svn.apache.org/viewvc?rev=413766&view=rev
Log:
Fix an intermittent problem running unit tests.  Also decrease the
timeout further, to make unit tests run a bit faster.

Modified:
    lucene/hadoop/trunk/src/test/org/apache/hadoop/dfs/MiniDFSCluster.java

Modified: lucene/hadoop/trunk/src/test/org/apache/hadoop/dfs/MiniDFSCluster.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/test/org/apache/hadoop/dfs/MiniDFSCluster.java?rev=413766&r1=413765&r2=413766&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/test/org/apache/hadoop/dfs/MiniDFSCluster.java (original)
+++ lucene/hadoop/trunk/src/test/org/apache/hadoop/dfs/MiniDFSCluster.java Mon Jun 12 16:29:47
2006
@@ -93,12 +93,16 @@
     conf.set("dfs.data.dir", new File(base_dir, "data").getPath());
     conf.setInt("dfs.replication", 1);
     // this timeout seems to control the minimum time for the test, so
-    // set it down at 5 seconds.
-    conf.setInt("ipc.client.timeout", 5000);
+    // decrease it considerably.
+    conf.setInt("ipc.client.timeout", 1000);
     NameNode.format(conf);
     nameNode = new NameNodeRunner();
     nameNodeThread = new Thread(nameNode);
     nameNodeThread.start();
+    try {                                     // let namenode get started
+      Thread.sleep(1000);
+    } catch(InterruptedException e) {
+    }
     dataNode = new DataNodeRunner();
     dataNodeThread = new Thread(dataNode);
     dataNodeThread.start();



Mime
View raw message