incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1208521 - in /incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests: MultiThreadTest.java SanityTest.java
Date Wed, 30 Nov 2011 17:03:39 GMT
Author: kwright
Date: Wed Nov 30 17:03:38 2011
New Revision: 1208521

URL: http://svn.apache.org/viewvc?rev=1208521&view=rev
Log:
Turn on exponential backoff in the test, to see what effect that has.

Modified:
    incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/MultiThreadTest.java
    incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/SanityTest.java

Modified: incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/MultiThreadTest.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/MultiThreadTest.java?rev=1208521&r1=1208520&r2=1208521&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/MultiThreadTest.java
(original)
+++ incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/MultiThreadTest.java
Wed Nov 30 17:03:38 2011
@@ -250,8 +250,8 @@ public class MultiThreadTest
       throws InterruptedException
     {
       contentions++;
-      //Thread.sleep(r.nextInt(50));
-      Thread.yield();
+      Thread.sleep(r.nextInt(100));
+      //Thread.yield();
     }
     
     protected void performInserts(WHTableStore ts)
@@ -335,7 +335,7 @@ public class MultiThreadTest
       throws InterruptedException
     {
       contentions++;
-      Thread.sleep(r.nextInt(50));
+      Thread.sleep(r.nextInt(100));
       //Thread.yield();
     }
     

Modified: incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/SanityTest.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/SanityTest.java?rev=1208521&r1=1208520&r2=1208521&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/SanityTest.java
(original)
+++ incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/SanityTest.java
Wed Nov 30 17:03:38 2011
@@ -458,8 +458,8 @@ public class SanityTest
   protected WHTableStore createInMemTableStore()
     throws WHException
   {
-    //return new TableStore(new InMemNativeTransactionalStoreImpl(new InMemAtomicNativeKeyValueStore(32768)));
-    return new TableStore(new InMemTransactionalStoreImpl(new InMemAtomicKeyValueStore(32768)));
+    return new TableStore(new InMemNativeTransactionalStoreImpl(new InMemAtomicNativeNonblockingKeyValueStore(32768)));
+    //return new TableStore(new InMemTransactionalStoreImpl(new InMemAtomicKeyValueStore(32768)));
   }
     
   protected void buildNonOverlappingTestTable(WHTableStore ts)



Mime
View raw message