Uploaded image for project: 'Nuxeo AI Core'
  1. Nuxeo AI Core
  2. AICORE-319

Review bulk Enrichments

    XMLWordPrintable

    Details

      Description

      The data flow within BAF Enrichment causes 

      00,in:98,inCheckpoint:98,out:0,lastRead:1592986661846,lastTimer:0,wm:208795946522509313,loop:108,checkpoint] WARN  [AbstractComputation] Computation: enrichment.in$SaveEnrichmentFunction fails last record: enrichment.in-00:+79186312036450, retrying ...
      org.nuxeo.ecm.core.api.ConcurrentUpdateException: Concurrent update
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.checkConcurrentUpdate(JDBCConnection.java:186) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.insertSimpleRows(JDBCRowMapper.java:551) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.writeCreates(JDBCRowMapper.java:462) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.write(JDBCRowMapper.java:439) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191]
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapperConnector.doInvoke(JDBCMapperConnector.java:111) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapperConnector.lambda$doConnectAndInvoke$0(JDBCMapperConnector.java:98) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:607) ~[nuxeo-runtime-jtajca-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapperConnector.doConnectAndInvoke(JDBCMapperConnector.java:95) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapperConnector.invoke(JDBCMapperConnector.java:84) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at com.sun.proxy.$Proxy97.write(Unknown Source) ~[?:?]
      	at org.nuxeo.ecm.core.storage.sql.SoftRefCachingRowMapper.write(SoftRefCachingRowMapper.java:360) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.SessionImpl.doFlush(SessionImpl.java:373) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.SessionImpl.flush(SessionImpl.java:345) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.SessionImpl.end(SessionImpl.java:1370) ~[nuxeo-core-storage-sql-10.10-HF25.jar:?]
      	at org.apache.geronimo.transaction.manager.WrapperNamedXAResource.end(WrapperNamedXAResource.java:61) ~[geronimo-transaction-2.2.1.jar:2.2.1]
      	at org.apache.geronimo.transaction.manager.TransactionImpl.endResources(TransactionImpl.java:569) ~[geronimo-transaction-2.2.1.jar:2.2.1]
      	at org.apache.geronimo.transaction.manager.TransactionImpl.endResources(TransactionImpl.java:548) ~[geronimo-transaction-2.2.1.jar:2.2.1]
      	at org.apache.geronimo.transaction.manager.TransactionImpl.beforePrepare(TransactionImpl.java:408) ~[geronimo-transaction-2.2.1.jar:2.2.1]
      	at org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:255) ~[geronimo-transaction-2.2.1.jar:2.2.1]
      	at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:252) ~[geronimo-transaction-2.2.1.jar:2.2.1]
      	at org.nuxeo.runtime.jtajca.NuxeoContainer$UserTransactionImpl.commit(NuxeoContainer.java:538) ~[nuxeo-runtime-jtajca-10.10-HF25.jar:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.commitOrRollbackTransaction(TransactionHelper.java:393) ~[nuxeo-runtime-jtajca-10.10-HF25.jar:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:617) ~[nuxeo-runtime-jtajca-10.10-HF25.jar:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:587) ~[nuxeo-runtime-jtajca-10.10-HF25.jar:?]
      	at org.nuxeo.ai.functions.SaveEnrichmentFunction.accept(SaveEnrichmentFunction.java:40) ~[nuxeo-ai-core-2.3.1-SNAPSHOT.jar:?] 

      That is the randomly reproducible even on concurrency level = 1

      The potential cause is actions within produced by ENRICHMENT_MODIFIED event and the BAF itself. 

      Check and review AICORE-333

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                anechaev Andrei Nechaev
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: