jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1527935 - /jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadManyTest.java
Date Tue, 01 Oct 2013 06:46:19 GMT
Author: mreutegg
Date: Tue Oct  1 06:46:19 2013
New Revision: 1527935

URL: http://svn.apache.org/r1527935
Log:
OAK-1034: OOME running Oak benchmark suite
- remove nodes in batches due to OAK-1056

Modified:
    jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadManyTest.java

Modified: jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadManyTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadManyTest.java?rev=1527935&r1=1527934&r2=1527935&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadManyTest.java
(original)
+++ jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadManyTest.java
Tue Oct  1 06:46:19 2013
@@ -165,6 +165,14 @@ abstract class ReadManyTest extends Abst
 
     @Override
     protected void afterSuite() throws Exception {
+        for (int i = 0; i < scale; i++) {
+            Node top = root.getNode("node" + i);
+            for (int j = 0; j < 1000; j++) {
+                top.getNode("node" + j).remove();
+                // save once every 1k leaf entries (OAK-1056)
+                session.save();
+            }
+        }
         root.remove();
         session.save();
         session.logout();



Mime
View raw message