jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1513766 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java
Date Wed, 14 Aug 2013 08:38:58 GMT
Author: mreutegg
Date: Wed Aug 14 08:38:58 2013
New Revision: 1513766

URL: http://svn.apache.org/r1513766
Log:
OAK-926: MongoMK: split documents when they are too large
- Disable splitting and purging with temporary solution to get TCK tests on MongoMK working
again

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java?rev=1513766&r1=1513765&r2=1513766&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java
Wed Aug 14 08:38:58 2013
@@ -42,18 +42,19 @@ public class Commit {
      * Whether to purge old revisions if a node gets too large. If false, old
      * revisions are stored in a separate document. If true, old revisions are
      * removed (purged).
+     * TODO: enable once document split and garbage collection implementation is complete.
      */
-    static final boolean PURGE_OLD_REVISIONS = true;
+    static final boolean PURGE_OLD_REVISIONS = false;
     
     private static final Logger LOG = LoggerFactory.getLogger(Commit.class);
 
     /**
      * The maximum size of a document. If it is larger, it is split.
+     * TODO: check which value is the best one
+     *       Document splitting is currently disabled until the implementation
+     *       is complete.
      */
-    // TODO check which value is the best one
-    //private static final int MAX_DOCUMENT_SIZE = 16 * 1024;
-    // TODO set to 512 KB currently, should be changed later on
-    private static final int MAX_DOCUMENT_SIZE = 512 * 1024;
+    private static final int MAX_DOCUMENT_SIZE = Integer.MAX_VALUE;
    
     private final MongoMK mk;
     private final Revision baseRevision;



Mime
View raw message