Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30714

Fix cursor timeout during binary garbage collection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF57, 2021.14
    • Component/s: Core MongoDB
    • Release Notes Summary:
      A configuration parameter is added to disable cursor timeout during the orphan binary GC.
    • Backlog priority:
      725
    • Sprint:
      nxplatform #50, nxplatform #51
    • Story Points:
      0

      Description

      Customers have reported getting the following error when running the orphaned binaries garbage collection

      2021-11-16T16:48:24,821 ERROR [NuxeoBinariesGCUI] [org.nuxeo.ecm.admin.SystemInfoManager] Error while executing BinariesGCTask
      2021-11-16T16:48:24,821 ERROR [NuxeoBinariesGCUI] [org.nuxeo.ecm.admin.SystemInfoManager] Error while executing BinariesGCTaskcom.mongodb.MongoCursorNotFoundException: Query failed with error code -5 and error message 'Cursor 1467063149408486102 not found on server <server_name>' on server <server_name> at com.mongodb.operation.QueryHelper.translateCommandException(QueryHelper.java:27) ~[mongo-java-driver-3.8.1.jar:?] at com.mongodb.operation.QueryBatchCursor.getMore(QueryBatchCursor.java:229) ~[mongo-java-driver-3.8.1.jar:?] at com.mongodb.operation.QueryBatchCursor.hasNext(QueryBatchCursor.java:115) ~[mongo-java-driver-3.8.1.jar:?] at com.mongodb.client.internal.MongoBatchCursorAdapter.hasNext(MongoBatchCursorAdapter.java:54) ~[mongo-java-driver-3.8.1.jar:?] at java.lang.Iterable.forEach(Iterable.java:74) ~[?:?] at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.markReferencedBinaries(MongoDBRepository.java:1049) ~[nuxeo-core-storage-mongodb-10.10-HF49.jar:?] at org.nuxeo.ecm.core.blob.DocumentBlobManagerComponent.lambda$garbageCollectBinaries$3(DocumentBlobManagerComponent.java:390) ~[nuxeo-core-10.10-HF51.jar:?] at org.nuxeo.ecm.core.blob.DocumentBlobManagerComponent.runInTransaction(DocumentBlobManagerComponent.java:423) ~[nuxeo-core-10.10-HF51.jar:?] at org.nuxeo.ecm.core.blob.DocumentBlobManagerComponent.garbageCollectBinaries(DocumentBlobManagerComponent.java:378) ~[nuxeo-core-10.10-HF51.jar:?] at org.nuxeo.ecm.core.storage.sql.management.SQLRepositoryStatus.gcBinaries(SQLRepositoryStatus.java:94) ~[nuxeo-core-storage-sql-management-10.10.jar:?] at org.nuxeo.ecm.admin.SystemInfoManager$BinariesGCTask.run(SystemInfoManager.java:355) [nuxeo-admin-center-jsf-10.10-HF34.jar:?] at java.lang.Thread.run(Thread.java:834) [?:?]
      

      Looks like this can be resolved by adding a call to noCursorTimeout. See here

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: