<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JobEntity was updated by another transaction concurrently in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215867#M168997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;during stress test of our application most of process instances failed because of exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.ActivitiOptimisticLockingException: JobEntity [id=1301291] was updated by another transaction concurrently&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.db.DbSqlSession$CheckedDeleteOperation.execute(DbSqlSession.java:297)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.db.DbSqlSession.flushRegularDeletes(DbSqlSession.java:924)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.db.DbSqlSession.flushDeletes(DbSqlSession.java:890)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:615)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:212)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:138)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:66)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at pl.play.executor.ComLoggingExecuteAsyncRunnable.executeJob(ComLoggingExecuteAsyncRunnable.java:34)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable.run(ExecuteAsyncRunnable.java:50)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at pl.play.executor.ComLoggingExecuteAsyncRunnable.run(ComLoggingExecuteAsyncRunnable.java:25)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.Thread.run(Thread.java:745)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Retries counter for jobs met -1 and about 80% of started process instances freezes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All jobs that failed are exclusive and are starting async serviceTasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our architecture contains two Activiti based applications connected to same database. Both are using SpringAsyncExecutor to obtain new jobs. Most of the configuration is default for Activiti framework.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What are we doing wrong? Is Activiti not able to handle our use case to use async executor in multiple engines to process started instances?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be appreciated. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 10:34:54 GMT</pubDate>
    <dc:creator>tomekzaremba</dc:creator>
    <dc:date>2016-02-19T10:34:54Z</dc:date>
    <item>
      <title>JobEntity was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215867#M168997</link>
      <description>Hi,during stress test of our application most of process instances failed because of exception&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg.activiti.engine.ActivitiOptimisticLockingException: JobEntity [id=1301291] was updated by another transaction concurrently&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.db.DbSqlSession$CheckedDeleteOperation.execute(D</description>
      <pubDate>Fri, 19 Feb 2016 10:34:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215867#M168997</guid>
      <dc:creator>tomekzaremba</dc:creator>
      <dc:date>2016-02-19T10:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: JobEntity was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215868#M168998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see that in jobEntity neither lockOwner nor lockTime are set for job. Why this is not default behavior? Maybe I set this off? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 11:02:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215868#M168998</guid>
      <dc:creator>tomekzaremba</dc:creator>
      <dc:date>2016-02-19T11:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: JobEntity was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215869#M168999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see in user guide:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{code}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Async executor will execute the asynchronous job directly without first polling the database. In case the asynchronous job is an exclusive job, the Async executor will first lock the process instance execution and if that succeeds execute the job and unlock the process instance execution again. If the process instance lock fails, it will retry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{code}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My jobs are both asynchronous and exclusive. When I debug and stops on serviceTask my jobEntity still does not have lockOwner and lockTime. Is this correct or is it Activiti bug?&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 12:07:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215869#M168999</guid>
      <dc:creator>tomekzaremba</dc:creator>
      <dc:date>2016-02-19T12:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: JobEntity was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215870#M169000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My fault - jobs are correctly locked / unlocked. Maybe my retry policy is causing errors in multi-engine environment (R3/PT10S).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any hints, how can I configure my cluster to handle processing without changing retry policy? Maybe async executor is not suitable solution for me? Maybe ActivitiOptimisticLockException should be handled besides default serviceTask policy - maybe it is proper to change due_date adjusting and don't decrement retries counter?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 12:39:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215870#M169000</guid>
      <dc:creator>tomekzaremba</dc:creator>
      <dc:date>2016-02-19T12:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: JobEntity was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215871#M169001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any hints? How cluster setup should be handled properly with async executor?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 05:58:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215871#M169001</guid>
      <dc:creator>tomekzaremba</dc:creator>
      <dc:date>2016-02-22T05:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: JobEntity was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215872#M169002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, quite a bit of text to read.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The optimistic locking exception os to be expected in a clustered setup, the stalling of course not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems to trigger some vague memory in me. I think we've worked on that (&lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/commit/e59d08629cfe514d7ee23eacd619a6b7bfb509e6" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/commit/e59d08629cfe514d7ee23eacd619a6b7bfb509e6&lt;/A&gt;&lt;SPAN&gt;) … so it might be good to build a snapshot version and give it a go.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 09:31:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215872#M169002</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-02-24T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: JobEntity was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215873#M169003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; we are using Alfresco Activiti Enterprise BPM Suite v1.4.5 and we are facing same issue without any cluster for async Service tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Could you please confirm issue has been fixed in v1.4.5 or not ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 18:19:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jobentity-was-updated-by-another-transaction-concurrently/m-p/215873#M169003</guid>
      <dc:creator>vsk106</dc:creator>
      <dc:date>2016-11-09T18:19:20Z</dc:date>
    </item>
  </channel>
</rss>

