<?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: What happens to the running process and flow files when nifi restarts in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/What-happens-to-the-running-process-and-flow-files-when-nifi/m-p/391402#M247604</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/113871"&gt;@CDC-&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I encourage you to start a new community question rather then adding to an existing question with an accepted answer.&amp;nbsp; &amp;nbsp;Your query is really unrelated to this question.&amp;nbsp; Something appears to be happening to your content prior to even reaching the PutDataBaseRecord processor.&amp;nbsp; I say this because the exception shared indicates the processor is looking for the content in an "archived" content claim.&amp;nbsp; Content claims are only moved to archive once the claimant count is zero (meaning no actively queued FlowFiles are still referencing content on that claim).&amp;nbsp; Any content claims moved to archive are subject to removal/deletion by the background archive clean-up thread.&amp;nbsp; So not surprised the content is missing.&amp;nbsp; The real question here is what is the lineage of this FlowFile and at what point upstream from your putDatabaseRecord&amp;nbsp; processor did the problem develop.&lt;BR /&gt;&lt;BR /&gt;Please start a new community question and provide as much detail as possible.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 12:33:06 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2024-08-06T12:33:06Z</dc:date>
    <item>
      <title>What happens to the running process and flow files when nifi restarts</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-happens-to-the-running-process-and-flow-files-when-nifi/m-p/352590#M236551</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wanted to understand what happens to the process and flow files which is currently running when the nifi gets restarted?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please share the details for the better understanding of nifi.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 09:08:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-happens-to-the-running-process-and-flow-files-when-nifi/m-p/352590#M236551</guid>
      <dc:creator>Sanchari</dc:creator>
      <dc:date>2022-09-19T09:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to the running process and flow files when nifi restarts</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-happens-to-the-running-process-and-flow-files-when-nifi/m-p/352600#M236554</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100554"&gt;@Sanchari&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;NiFi FlowFiles reside in connection between NiFi component processors.&amp;nbsp; When a processor gets a thread to execute, it takes the highest priority FlowFile from an inbound connection queue and executes the processor code utilizing that FlowFiles metadata/attributes and content (if processor needs content).&amp;nbsp; The FlowFile is not transferred to a processors outbound connection(s) until execution is complete.&lt;BR /&gt;&lt;BR /&gt;When NiFi is shutdown gracefully (meaning a user has initiated a shutdown), NiFi stops scheduling future component execution.&amp;nbsp; NiFi then gives existing executing threads a grace period to complete their thread execution.&amp;nbsp; At the end of that grace period, any still running threads are killed with the JVM.&amp;nbsp; Since FlowFiles do not transfer to an outbound connection until code execution has completed, and FlowFile that was owned by a thread at the time the thread was killed still remains on the inbound connection.&amp;nbsp; When NiFi is started again and the dataflows started, the file processing will start over when the processor executes again and executes against the highest priority FlowFile in the connection.&lt;BR /&gt;&lt;BR /&gt;Above being said, NiFi will favor data duplication over data loss every time.&amp;nbsp; It is possible in a small window of time that processor executes and part of that execution is let's say to write a file to a remote server.&amp;nbsp; NiFi may for example ack the completion of that transfer to the remote system and NiFi JVM was killed before internally it received ack back from target server. So the FlowFile would end up being processed again resulting potentially data duplication on the target server.&amp;nbsp; These are rare race conditions, but possible.&lt;BR /&gt;&lt;BR /&gt;A restart is nothing more than a standard shutdown followed by a start.&amp;nbsp; The same behavior exists in the shutdown process as described above when a restart is performed.&lt;BR /&gt;&lt;BR /&gt;&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;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 12:57:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-happens-to-the-running-process-and-flow-files-when-nifi/m-p/352600#M236554</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-09-19T12:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to the running process and flow files when nifi restarts</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-happens-to-the-running-process-and-flow-files-when-nifi/m-p/391385#M247594</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are streaming data continuosly to our NIFI PutDataBaseRecord Processor.&lt;/P&gt;&lt;P&gt;When any Nifi restart or crash happens , the streaming data during that time get failed with below exception.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CDC_1-1722923949945.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41367i57C9CECA59AF9EDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CDC_1-1722923949945.png" alt="CDC_1-1722923949945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;we can able to see the failed queues but once we select View to see the data it says below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CDC_2-1722924936707.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41368i7E517F523C853C35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CDC_2-1722924936707.png" alt="CDC_2-1722924936707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please kindly help me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 06:15:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-happens-to-the-running-process-and-flow-files-when-nifi/m-p/391385#M247594</guid>
      <dc:creator>CDC-</dc:creator>
      <dc:date>2024-08-06T06:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to the running process and flow files when nifi restarts</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-happens-to-the-running-process-and-flow-files-when-nifi/m-p/391402#M247604</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/113871"&gt;@CDC-&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I encourage you to start a new community question rather then adding to an existing question with an accepted answer.&amp;nbsp; &amp;nbsp;Your query is really unrelated to this question.&amp;nbsp; Something appears to be happening to your content prior to even reaching the PutDataBaseRecord processor.&amp;nbsp; I say this because the exception shared indicates the processor is looking for the content in an "archived" content claim.&amp;nbsp; Content claims are only moved to archive once the claimant count is zero (meaning no actively queued FlowFiles are still referencing content on that claim).&amp;nbsp; Any content claims moved to archive are subject to removal/deletion by the background archive clean-up thread.&amp;nbsp; So not surprised the content is missing.&amp;nbsp; The real question here is what is the lineage of this FlowFile and at what point upstream from your putDatabaseRecord&amp;nbsp; processor did the problem develop.&lt;BR /&gt;&lt;BR /&gt;Please start a new community question and provide as much detail as possible.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 12:33:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-happens-to-the-running-process-and-flow-files-when-nifi/m-p/391402#M247604</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-08-06T12:33:06Z</dc:date>
    </item>
  </channel>
</rss>

