Author: amitj
Date: Thu Oct 27 08:20:32 2016
New Revision: 1766781

URL: http://svn.apache.org/viewvc?rev=1766781&view=rev
Log:
OAK-5016: OOM in SegmentDataStoreBlobGCIT

* Reduced additions/deletion for garbage creation from 4000/500 -> 500/100
* Reducing de-duplication cache size to 16384

Modified:
    
jackrabbit/oak/trunk/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentDataStoreBlobGCIT.java

Modified: 
jackrabbit/oak/trunk/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentDataStoreBlobGCIT.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentDataStoreBlobGCIT.java?rev=1766781&r1=1766780&r2=1766781&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentDataStoreBlobGCIT.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentDataStoreBlobGCIT.java
 Thu Oct 27 08:20:32 2016
@@ -122,6 +122,7 @@ public class SegmentDataStoreBlobGCIT {
         if (nodeStore == null) {
             ScheduledExecutorService executor = 
Executors.newSingleThreadScheduledExecutor();
             FileStoreBuilder builder = fileStoreBuilder(getWorkDir())
+                    .withNodeDeduplicationCacheSize(16384)
                     .withBlobStore(blobStore)
                     .withMaxFileSize(256)
                     .withMemoryMapping(false)
@@ -154,7 +155,7 @@ public class SegmentDataStoreBlobGCIT {
         NodeBuilder a = nodeStore.getRoot().builder();
 
         /* Create garbage by creating in-lined blobs (size < 16KB) */
-        int number = 4000;
+        int number = 500;
         NodeBuilder content = a.child("content");
         for (int i = 0; i < number; i++) {
             NodeBuilder c = content.child("x" + i);
@@ -169,7 +170,7 @@ public class SegmentDataStoreBlobGCIT {
 
         // 2. Now remove the nodes to generate garbage
         content = a.child("content");
-        for (int i = 0; i < 500; i++) {
+        for (int i = 0; i < 100; i++) {
             NodeBuilder c = content.child("x" + i);
             for (int j = 0; j < 5; j++) {
                 c.removeProperty("p" + j);


Reply via email to