<?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 Apache Nifi: how to ensure record order between processors in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-how-to-ensure-record-order-between-processors/m-p/373382#M241698</link>
    <description>&lt;P&gt;Dear Community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple flow in Apache NiFi 1.20:&lt;/P&gt;&lt;P&gt;1. QueryDatabaseTableRecord -&amp;gt; 2. SplitAvro -&amp;gt; 3. ConvertAvroToJson -&amp;gt; 4. LogAttribute -&amp;gt; 5. PutDatabaseRecord&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flow descrition:&lt;/P&gt;&lt;P&gt;1. Read records from a table order by "updated" column (a datetime with millisecs).&lt;/P&gt;&lt;P&gt;2. put each of records into single flowfile&lt;/P&gt;&lt;P&gt;3. Convert a record into JSON&lt;/P&gt;&lt;P&gt;4. Log JSON into log file.&lt;/P&gt;&lt;P&gt;5. insert a record to different database&lt;/P&gt;&lt;P&gt;Each of processors have only 1 single concurrent thread on SETTING page!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works fine, except sometime the order of the records will be changed according to "updated" column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please find me the cause? How can be ensured the order of records right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 09:10:15 GMT</pubDate>
    <dc:creator>scheeri</dc:creator>
    <dc:date>2023-06-29T09:10:15Z</dc:date>
    <item>
      <title>Apache Nifi: how to ensure record order between processors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-how-to-ensure-record-order-between-processors/m-p/373382#M241698</link>
      <description>&lt;P&gt;Dear Community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple flow in Apache NiFi 1.20:&lt;/P&gt;&lt;P&gt;1. QueryDatabaseTableRecord -&amp;gt; 2. SplitAvro -&amp;gt; 3. ConvertAvroToJson -&amp;gt; 4. LogAttribute -&amp;gt; 5. PutDatabaseRecord&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flow descrition:&lt;/P&gt;&lt;P&gt;1. Read records from a table order by "updated" column (a datetime with millisecs).&lt;/P&gt;&lt;P&gt;2. put each of records into single flowfile&lt;/P&gt;&lt;P&gt;3. Convert a record into JSON&lt;/P&gt;&lt;P&gt;4. Log JSON into log file.&lt;/P&gt;&lt;P&gt;5. insert a record to different database&lt;/P&gt;&lt;P&gt;Each of processors have only 1 single concurrent thread on SETTING page!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works fine, except sometime the order of the records will be changed according to "updated" column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please find me the cause? How can be ensured the order of records right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 09:10:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-how-to-ensure-record-order-between-processors/m-p/373382#M241698</guid>
      <dc:creator>scheeri</dc:creator>
      <dc:date>2023-06-29T09:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi: how to ensure record order between processors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-how-to-ensure-record-order-between-processors/m-p/373388#M241699</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17652"&gt;@scheeri&lt;/a&gt;,&amp;nbsp;I'm not an expert but maybe this well written reply by&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;will get you closer.&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Ensuring-of-order-of-flow-files-in-Nifi/m-p/314305/highlight/true#M225961" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Ensuring-of-order-of-flow-files-in-Nifi/m-p/314305/highlight/true#M225961&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 12:42:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-how-to-ensure-record-order-between-processors/m-p/373388#M241699</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2023-06-29T12:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi: how to ensure record order between processors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-how-to-ensure-record-order-between-processors/m-p/373389#M241700</link>
      <description>&lt;P&gt;Thank you for your answer!&lt;/P&gt;&lt;P&gt;It was not tested by me, but probably there was problem with prioritizing, because it has to be set directly by hand. It is strange, because a queue should has FIFO prioritized by default, i think.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 12:47:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-how-to-ensure-record-order-between-processors/m-p/373389#M241700</guid>
      <dc:creator>scheeri</dc:creator>
      <dc:date>2023-06-29T12:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi: how to ensure record order between processors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-how-to-ensure-record-order-between-processors/m-p/373416#M241701</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17652"&gt;@scheeri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FIFO is the default priority of a connection queue; however, if you have more then one concurrent task on a processor, multiple FlowFiles from the source connection can be executed about concurrently.&amp;nbsp; This means that one of those concurrent execution may complete before the other leading to FlowFile no longer being in same order in follow-on connections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 18:30:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-how-to-ensure-record-order-between-processors/m-p/373416#M241701</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-06-29T18:30:47Z</dc:date>
    </item>
  </channel>
</rss>

