Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3062

VersionGC failing on Mongo with CursorNotFoundException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.17, 1.2.3, 1.3.2, 1.4
    • Component/s: mongomk
    • Labels:
      None

      Description

      At times the VersionGC on big repository fails with following exception

      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 mongoserver: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)
      

        Attachments

        1. cursor-78740863820.log
          15 kB
          Chetan Mehrotra
        2. versiongc-oak.log
          10 kB
          Chetan Mehrotra

          Issue Links

            Activity

              People

              • Assignee:
                chetanm Chetan Mehrotra
                Reporter:
                chetanm Chetan Mehrotra
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: