<?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 Problem caused by multiple asynchronous sub process finishing around the same time. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202951#M156081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We need to launch multiple (up to 24) sub-process from a Main process. Each sub-process will have multiple asynchronous task.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We noticed an issue when multiple sub-process finish in the same time: we get errors like ActivitiOptimisticLockingException and the activiti engine will retry the sub-process . This behaviour causes 2 problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;The first problem is that the last tasks of the sub-process will be executed again, so we must be sure that these tasks are allowed to run multiple time.&lt;/LI&gt;&amp;nbsp; &lt;LI&gt;The second problem is that some time one sub-process is retried to much and fail ( maximum number retries reached).&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;We have this problem only with Oracle or PostgreSQL never with H2. We made a jUnit test that shows the behaviour by launching a sub-process containing a counter that should be increased only once by sub-process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be related to &lt;/SPAN&gt;&lt;A href="https://activiti.atlassian.net/browse/ACT-2126" rel="nofollow noopener noreferrer"&gt;ACT-2126&lt;/A&gt;&lt;SPAN&gt; but in our junit we managed to run sub-process in parallel. We have only the problem when merging back to the main process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would like that we open a ticket? We can join our project with the jUnit test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gael&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2015 15:00:16 GMT</pubDate>
    <dc:creator>domreiroam</dc:creator>
    <dc:date>2015-10-28T15:00:16Z</dc:date>
    <item>
      <title>Problem caused by multiple asynchronous sub process finishing around the same time.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202951#M156081</link>
      <description>Hi all, We need to launch multiple (up to 24) sub-process from a Main process. Each sub-process will have multiple asynchronous task.&amp;nbsp; We noticed an issue when multiple sub-process finish in the same time: we get errors like ActivitiOptimisticLockingException and the activiti engine will retry the s</description>
      <pubDate>Wed, 28 Oct 2015 15:00:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202951#M156081</guid>
      <dc:creator>domreiroam</dc:creator>
      <dc:date>2015-10-28T15:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem caused by multiple asynchronous sub process finishing around the same time.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202952#M156082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have multiple servers and fire jobs for the same process instance, then optimistic locking is expected. You could solve it by making them exclusive (but with multiple servers it might still happen). The reason why H2 doesn't show it could be because H2 has a much more coarse locking vs 'real' databases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The unit test would be fantastic to understand. You can indeed create an issue and attach it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:39:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202952#M156082</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-10-28T19:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem caused by multiple asynchronous sub process finishing around the same time.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202953#M156083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have the problem with only one server and we did reproduce in a junit using the last version (5.18)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:57:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202953#M156083</guid>
      <dc:creator>domreiroam</dc:creator>
      <dc:date>2015-10-28T19:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem caused by multiple asynchronous sub process finishing around the same time.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202954#M156084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just create &lt;/SPAN&gt;&lt;A href="https://activiti.atlassian.net/browse/ACT-4083" rel="nofollow noopener noreferrer"&gt;ACT-4083&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 17:25:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202954#M156084</guid>
      <dc:creator>domreiroam</dc:creator>
      <dc:date>2015-10-29T17:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem caused by multiple asynchronous sub process finishing around the same time.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202955#M156085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, thanks. Will look into it and discuss further in the jira issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 12:46:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-caused-by-multiple-asynchronous-sub-process-finishing/m-p/202955#M156085</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-11-03T12:46:38Z</dc:date>
    </item>
  </channel>
</rss>

