jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1004227 - in /jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance: ConcurrentReadTest.java ConcurrentReadWriteTest.java
Date Mon, 04 Oct 2010 13:10:58 GMT
Author: jukka
Date: Mon Oct  4 13:10:58 2010
New Revision: 1004227

URL: http://svn.apache.org/viewvc?rev=1004227&view=rev
Log:
JCR-2699: Improve read/write concurrency

Set the default test scale to 20 concurrent readers to avoid some of the more unrealistic
lock contention cases

Modified:
    jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java
    jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadWriteTest.java

Modified: jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java?rev=1004227&r1=1004226&r2=1004227&view=diff
==============================================================================
--- jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java
(original)
+++ jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java
Mon Oct  4 13:10:58 2010
@@ -30,7 +30,7 @@ public class ConcurrentReadTest extends 
 
     protected static final int NODE_COUNT = 100;
 
-    private static final int READER_COUNT = getScale(50);
+    private static final int READER_COUNT = getScale(20);
 
     private Session session;
 

Modified: jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadWriteTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadWriteTest.java?rev=1004227&r1=1004226&r2=1004227&view=diff
==============================================================================
--- jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadWriteTest.java
(original)
+++ jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadWriteTest.java
Mon Oct  4 13:10:58 2010
@@ -36,7 +36,7 @@ public class ConcurrentReadWriteTest ext
 
     private class Writer implements Runnable {
 
-        private final Session session = loginReader();
+        private final Session session = loginWriter();
 
         private final Random random = new Random();
 



Mime
View raw message