You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2011/11/26 16:50:53 UTC

svn commit: r1206465 - /incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java

Author: kwright
Date: Sat Nov 26 15:50:52 2011
New Revision: 1206465

URL: http://svn.apache.org/viewvc?rev=1206465&view=rev
Log:
Optimize the backoff/retry time interval

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

Modified: incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java?rev=1206465&r1=1206464&r2=1206465&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java (original)
+++ incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java Sat Nov 26 15:50:52 2011
@@ -227,8 +227,8 @@ public class PerformanceTest
       throws InterruptedException
     {
       contentions++;
-      //Thread.sleep(r.next(500));
-      Thread.yield();
+      Thread.sleep(r.nextInt(200));
+      //Thread.yield();
     }
     
     protected void performTask(WHTableStore ts)