rishabhdaim commented on code in PR #2038:
URL: https://github.com/apache/jackrabbit-oak/pull/2038#discussion_r1977476862


##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java:
##########
@@ -463,6 +466,11 @@ private void ensureIndexes(@NotNull MongoDatabase db, 
@NotNull MongoStatus mongo
 
         // index on _modified for journal entries
         createIndex(journal, JournalEntry.MODIFIED, true, false, false);
+
+        //TTL index for full GC bin documents to expire after 90 days
+        //see https://issues.apache.org/jira/browse/OAK-11444
+        IndexOptions indexOptions = new 
IndexOptions().expireAfter(TimeUnit.DAYS.toSeconds(90), 
java.util.concurrent.TimeUnit.SECONDS);

Review Comment:
   Need to create it only if config is set to true.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: oak-dev-unsubscr...@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to