incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1206465 - /incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java
Date Sat, 26 Nov 2011 15:50:53 GMT
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)



Mime
View raw message