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

Fix query projecting on ecm:uuid when using optimized MongoDB ids

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core MongoDB
    • Tags:
    • Team:
      FG
    • Sprint:
      nxFG 11.1.13
    • Story Points:
      2

      Description

      This failure occurs when using a projection SELECT ecm:uuid ... when using optimized MongoDB ids (sequenceHexRandomized, NXP-28763).

      2020-07-27T02:24:55,894 ERROR [WorkManagerImpl] Uncaught error on thread: Nuxeo-Work-elasticSearchIndexing-6, current work might be lost, WorkManager metrics might be corrupted.
      org.nuxeo.ecm.core.api.NuxeoException: Work failed after 1 retry, class=class org.nuxeo.elasticsearch.work.ScrollingIndexingWorker id=10721511597708.1711867698 category=elasticSearchIndexing title=Elasticsearch scrolling indexer: SELECT ecm:uuid FROM Document WHERE ecm:ancestorId = '1c13f2cb61dbdaa9', processed 0
           at org.nuxeo.ecm.core.work.AbstractWork.workFailed(AbstractWork.java:476) ~[nuxeo-core-event-11.2.11.jar:?]
           at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:398) ~[nuxeo-core-event-11.2.11.jar:?]
           at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) ~[nuxeo-core-event-11.2.11.jar:?]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
           at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader 'bootstrap')
           at org.nuxeo.ecm.core.storage.mongodb.MongoDBCursorService.lambda$new$0(MongoDBCursorService.java:38) ~[nuxeo-core-storage-mongodb-11.2.11.jar:?]
           at org.nuxeo.ecm.core.api.CursorService.scroll(CursorService.java:149) ~[nuxeo-core-api-11.2.11.jar:?]
           at org.nuxeo.ecm.core.storage.mongodb.MongoDBConnection.scroll(MongoDBConnection.java:843) ~[nuxeo-core-storage-mongodb-11.2.11.jar:?]
           at org.nuxeo.ecm.core.storage.mongodb.MongoDBConnection.scroll(MongoDBConnection.java:836) ~[nuxeo-core-storage-mongodb-11.2.11.jar:?]
           at org.nuxeo.ecm.core.storage.dbs.DBSCachingConnection.scroll(DBSCachingConnection.java:357) ~[nuxeo-core-storage-dbs-11.2.11.jar:?]
           at org.nuxeo.ecm.core.storage.dbs.DBSTransactionState.scroll(DBSTransactionState.java:764) ~[nuxeo-core-storage-dbs-11.2.11.jar:?]
           at org.nuxeo.ecm.core.storage.dbs.DBSSession.scroll(DBSSession.java:1919) ~[nuxeo-core-storage-dbs-11.2.11.jar:?]
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
           at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
           at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
           at org.nuxeo.ecm.core.storage.dbs.DBSRepositoryBase$DBSSessionInvoker.invoke(DBSRepositoryBase.java:487) ~[nuxeo-core-storage-dbs-11.2.11.jar:?]
           at com.sun.proxy.$Proxy70.scroll(Unknown Source) ~[?:?]
           at org.nuxeo.ecm.core.api.AbstractSession.scroll(AbstractSession.java:1377) ~[nuxeo-core-11.2.11.jar:?]
           at org.nuxeo.elasticsearch.work.ScrollingIndexingWorker.doWork(ScrollingIndexingWorker.java:81) ~[nuxeo-elasticsearch-core-11.2.11.jar:?]
           at org.nuxeo.elasticsearch.work.BaseIndexingWorker.work(BaseIndexingWorker.java:48) ~[nuxeo-elasticsearch-core-11.2.11.jar:?]
           at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:530) ~[nuxeo-core-event-11.2.11.jar:?]
           at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:385) ~[nuxeo-core-event-11.2.11.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: