[ 
https://issues.apache.org/jira/browse/OAK-3062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chetan Mehrotra resolved OAK-3062.
----------------------------------
    Resolution: Fixed

Added support for sending the hint by default. If required this can be disabled 
via setting system property {{oak.mongo.disableVersionGCIndexHint}} to true
* trunk - http://svn.apache.org/r1688622
* 1.0 - http://svn.apache.org/r1688625
* 1.2 - http://svn.apache.org/r1688626

> VersionGC failing on Mongo with CursorNotFoundException
> -------------------------------------------------------
>
>                 Key: OAK-3062
>                 URL: https://issues.apache.org/jira/browse/OAK-3062
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: mongomk
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.2.3, 1.3.3, 1.0.17
>
>         Attachments: cursor-78740863820.log, versiongc-oak.log
>
>
> At times the VersionGC on big repository fails with following exception
> {noformat}
> 30.06.2015 03:55:59.253 *INFO* [pool-7-thread-132] 
> org.apache.jackrabbit.oak.plugins.document.VersionGarbageCollector Iterated 
> through 440000 documents so far. 410668 found to be deleted
> com.mongodb.MongoException$CursorNotFound: Cursor 78740863820 not found on 
> server mongo2.aem.lan.tpa.foxnews.com:27017
>       at 
> com.mongodb.QueryResultIterator.throwOnQueryFailure(QueryResultIterator.java:218)
>       at com.mongodb.QueryResultIterator.init(QueryResultIterator.java:198)
>       at 
> com.mongodb.QueryResultIterator.initFromQueryResponse(QueryResultIterator.java:176)
>       at com.mongodb.QueryResultIterator.getMore(QueryResultIterator.java:141)
>       at com.mongodb.QueryResultIterator.hasNext(QueryResultIterator.java:127)
>       at com.mongodb.DBCursor._hasNext(DBCursor.java:551)
>       at com.mongodb.DBCursor.hasNext(DBCursor.java:571)
>       at 
> com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:43)
>       at 
> org.apache.jackrabbit.oak.plugins.document.VersionGarbageCollector.collectDeletedDocuments(VersionGarbageCollector.java:110)
>       at 
> org.apache.jackrabbit.oak.plugins.document.VersionGarbageCollector.gc(VersionGarbageCollector.java:85)
>       at 
> org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService$2.run(DocumentNodeStoreService.java:503)
>       at 
> org.apache.jackrabbit.oak.spi.state.RevisionGC$1.call(RevisionGC.java:68)
>       at 
> org.apache.jackrabbit.oak.spi.state.RevisionGC$1.call(RevisionGC.java:64)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:745)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to