hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1519239 - /hama/trunk/core/src/test/java/org/apache/hama/bsp/sync/TestSyncServiceFactory.java
Date Sun, 01 Sep 2013 03:36:20 GMT
Author: edwardyoon
Date: Sun Sep  1 03:36:20 2013
New Revision: 1519239

URL: http://svn.apache.org/r1519239
Log:
HAMA-587: Fix unit test fails. Use just default ZK session timeout.

Modified:
    hama/trunk/core/src/test/java/org/apache/hama/bsp/sync/TestSyncServiceFactory.java

Modified: hama/trunk/core/src/test/java/org/apache/hama/bsp/sync/TestSyncServiceFactory.java
URL: http://svn.apache.org/viewvc/hama/trunk/core/src/test/java/org/apache/hama/bsp/sync/TestSyncServiceFactory.java?rev=1519239&r1=1519238&r2=1519239&view=diff
==============================================================================
--- hama/trunk/core/src/test/java/org/apache/hama/bsp/sync/TestSyncServiceFactory.java (original)
+++ hama/trunk/core/src/test/java/org/apache/hama/bsp/sync/TestSyncServiceFactory.java Sun
Sep  1 03:36:20 2013
@@ -116,7 +116,6 @@ public class TestSyncServiceFactory exte
     conf.setInt(Constants.PEER_PORT, zkPort);
     conf.set(Constants.ZOOKEEPER_QUORUM, "localhost");
     conf.setInt(Constants.ZOOKEEPER_CLIENT_PORT, zkPort);
-    conf.set(Constants.ZOOKEEPER_SESSION_TIMEOUT, "12000");
     System.setProperty("user.dir", "/tmp");
     // given null, should return zookeeper
     final SyncServer syncServer = SyncServiceFactory.getSyncServer(conf);
@@ -147,8 +146,11 @@ public class TestSyncServiceFactory exte
         }
       }
     });
+    
+    Thread.sleep(3000);
 
     IntWritable data = new IntWritable(5);
+    
     syncClient.storeInformation(
         syncClient.constructKey(jobId, String.valueOf(1L), "test"), data, true,
         null);



Mime
View raw message