<?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>Question Re: Problem updating Dynamic Process Definition with Zero Downtime Deployment in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/problem-updating-dynamic-process-definition-with-zero-downtime-deployment/qaa-p/12501005#M4684697</link>
    <description>&lt;P&gt;After diving deeper into the code and reading some documentation (e.g. about Percona), I have my doubts about my first conclusion.&lt;/P&gt;&lt;P&gt;Master and Slave DB nodes should be really consistent.&lt;BR /&gt;Maybe it's a problem with the Flexible Search Cache, because 1 thing is clear: the FS returns different DynamicProcessDefinitionModels depending on which Cluster Node is called. Maybe the UPD Multicast is not working as expected?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 17:49:04 GMT</pubDate>
    <dc:creator>parovi</dc:creator>
    <dc:date>2022-03-11T17:49:04Z</dc:date>
    <item>
      <title>Problem updating Dynamic Process Definition with Zero Downtime Deployment</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-updating-dynamic-process-definition-with-zero-downtime-deployment/qaq-p/12501004</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;
  &lt;P&gt;We were shortly doing an update of one of our Dynamic Process Definitions (DPD) for order management during a Zero Downtime Deployment (ZDD)&lt;BR /&gt;During that time, and for a short period of time (around 10-15 minutes), some of the created Business Processes (BPs) got broken on some random actions. In the ProcessTaskLog was nothing to be seen.&lt;/P&gt;
  &lt;P&gt;Checking the Logs I could find this message:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;java.lang.IllegalStateException: orderManagementProcess(VERSION:2) is not equal to orderManagementProcess(VERSION:1&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Taking a deeper look I could confirm that all the BPs that were broken had version 2 assigned, but not all of them were broken.&lt;/P&gt;
  &lt;P&gt;I also see that in that period BPs with version 1 or 2 were created indistinctly.&lt;/P&gt;
  &lt;P&gt;These findings brought me to this conclusion:&lt;/P&gt;
  &lt;OL&gt; 
   &lt;LI&gt;The DPD is being imported to the Database via Impex&lt;/LI&gt; 
   &lt;LI&gt;We are using a Percona MySQL Cluster and the Impex is played first in the master node, and then be replicated to the slave node&lt;/LI&gt; 
   &lt;LI&gt;During this happens, orders are being processed. I'm not sure how the version is assigned for the BP, but it looks like it’s based in the DPD sited in one of the Percona nodes.&lt;/LI&gt; 
   &lt;LI&gt;When the BP then starts, the actions are distributed between different server nodes. And here we have probably the problem:&lt;BR /&gt;a. BP get the new version assigned (in this case, version 2)&lt;BR /&gt;b. The node where the action is executed communicates with a DB node which was still not updated (that means, no version 2 exists there)&lt;BR /&gt;c. Action cannot recognise the version and stop working (without logs)&lt;/LI&gt; 
   &lt;LI&gt;No problems happen when:&lt;BR /&gt;a. BP get the old version&lt;BR /&gt;b. Actions are executed in the node where the new version is present&lt;/LI&gt; 
   &lt;LI&gt;When the DB nodes are synced, the problem is gone&lt;/LI&gt; 
  &lt;/OL&gt;
  &lt;P&gt;And now my question:&lt;/P&gt;
  &lt;P&gt;Is there a way to configure the update of the DPD, so that it's working in a ZDD for a clustered environment using Percona?&lt;/P&gt;
  &lt;P&gt;Note: No ZDD is not a go for our client.&lt;/P&gt;
  &lt;P&gt;And forgot to mention: we use SAP Commerce version 1905&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 17:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-updating-dynamic-process-definition-with-zero-downtime-deployment/qaq-p/12501004</guid>
      <dc:creator>parovi</dc:creator>
      <dc:date>2022-03-08T17:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating Dynamic Process Definition with Zero Downtime Deployment</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-updating-dynamic-process-definition-with-zero-downtime-deployment/qaa-p/12501005#M4684697</link>
      <description>&lt;P&gt;After diving deeper into the code and reading some documentation (e.g. about Percona), I have my doubts about my first conclusion.&lt;/P&gt;&lt;P&gt;Master and Slave DB nodes should be really consistent.&lt;BR /&gt;Maybe it's a problem with the Flexible Search Cache, because 1 thing is clear: the FS returns different DynamicProcessDefinitionModels depending on which Cluster Node is called. Maybe the UPD Multicast is not working as expected?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 17:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-updating-dynamic-process-definition-with-zero-downtime-deployment/qaa-p/12501005#M4684697</guid>
      <dc:creator>parovi</dc:creator>
      <dc:date>2022-03-11T17:49:04Z</dc:date>
    </item>
  </channel>
</rss>

