You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ch...@apache.org on 2015/03/11 05:49:53 UTC

svn commit: r1665760 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java

Author: chetanm
Date: Wed Mar 11 04:49:52 2015
New Revision: 1665760

URL: http://svn.apache.org/r1665760
Log:
OAK-2580 - Metatype info for DocumentNodeStoreService

Add details for versionGcMaxAgeInSecs

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java?rev=1665760&r1=1665759&r2=1665760&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java Wed Mar 11 04:49:52 2015
@@ -245,7 +245,14 @@ public class DocumentNodeStoreService {
     /**
      * Revisions older than this time would be garbage collected
      */
-    private static final long DEFAULT_VER_GC_MAX_AGE = TimeUnit.DAYS.toSeconds(1);
+    private static final long DEFAULT_VER_GC_MAX_AGE = 24 * 60 * 60; //TimeUnit.DAYS.toSeconds(1);
+    @Property (longValue = DEFAULT_VER_GC_MAX_AGE,
+            label = "Version GC Max Age (in secs)",
+            description = "Version Garbage Collector (GC) logic will only consider those deleted for GC which " +
+                    "are not accessed recently (currentTime - lastModifiedTime > versionGcMaxAgeInSecs). For " +
+                    "example as per default only those document which have been *marked* deleted 24 hrs ago will be " +
+                    "considered for GC. This also applies how older revision of live document are GC."
+    )
     public static final String PROP_VER_GC_MAX_AGE = "versionGcMaxAgeInSecs";
     private long versionGcMaxAgeInSecs = DEFAULT_VER_GC_MAX_AGE;