Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3812

Task manager: error with multiple concurrent persistent tasks

    XMLWordPrintable

    Details

      Description

      16:02:41,625  INFO event.internal.DefaultLoadEventListener:129 - HHH000327: Error performing load command : org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [org.olat.core.commons.services.taskexecutor.model.PersistentTask#22708242]
      16:02:41,626 ERROR taskexecutor.model.PersistentTaskRunnable:175 - OLAT::ERROR ^%^ N1-E22 ^%^ org.olat.core.commons.services.taskexecutor.model ^%^ n/a ^%^ n/a ^%^ n/a ^%^ n/a ^%^ Error while running task in a separate thread: 22708242
      >>>stack of 1.cause::javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [org.olat.core.commons.services.taskexecutor.model.PersistentTask#22708242]
      -> at org.hibernate.internal.ExceptionConverterImpl.wrapStaleStateException(ExceptionConverterImpl.java:199)
         at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:88)
         at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:176)
         at org.hibernate.internal.SessionImpl.find(SessionImpl.java:3430)
         at org.hibernate.internal.SessionImpl.find(SessionImpl.java:3380)
         at org.olat.core.commons.services.taskexecutor.manager.PersistentTaskDAO.delete(PersistentTaskDAO.java:209)
         at org.olat.core.commons.services.taskexecutor.manager.PersistentTaskDAO.taskDone(PersistentTaskDAO.java:234)
         at org.olat.core.commons.services.taskexecutor.model.PersistentTaskRunnable.run(PersistentTaskRunnable.java:54)
         at org.olat.core.commons.services.taskexecutor.model.DBSecureRunnable.run(DBSecureRunnable.java:42)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      >>>stack of 2.cause::org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [org.olat.core.commons.services.taskexecutor.model.PersistentTask#22708242]
      -> at org.hibernate.dialect.lock.PessimisticWriteSelectLockingStrategy.lock(PessimisticWriteSelectLockingStrategy.java:76)
         at org.hibernate.persister.entity.AbstractEntityPersister.lock(AbstractEntityPersister.java:1802)
         at org.hibernate.event.internal.AbstractLockUpgradeEventListener.upgradeLock(AbstractLockUpgradeEventListener.java:82)
         at org.hibernate.event.internal.DefaultLoadEventListener.loadFromSessionCache(DefaultLoadEventListener.java:566)
         at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:441)
         at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:219)
         at org.hibernate.event.internal.DefaultLoadEventListener.lockAndLoad(DefaultLoadEventListener.java:403)
         at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:124)
         at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:89)
         at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1239)
         at org.hibernate.internal.SessionImpl.access$1900(SessionImpl.java:203)
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              d.haag Daniel Haag
              Tester:
              Mandy Menzel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 5 minutes
                1h 5m