You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cu...@apache.org on 2006/06/13 01:29:48 UTC
svn commit: r413766 -
/lucene/hadoop/trunk/src/test/org/apache/hadoop/dfs/MiniDFSCluster.java
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();