<?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: NiFi - Flow file stuck in queue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374980#M242222</link>
    <description>&lt;P&gt;Thank you Matt for the reply. I also thought the same that may be some types of exceptions in the processor are handled in such a way that it cannot be routed to failure relationship.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 06:40:39 GMT</pubDate>
    <dc:creator>apk132</dc:creator>
    <dc:date>2023-08-07T06:40:39Z</dc:date>
    <item>
      <title>NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374828#M242160</link>
      <description>&lt;P&gt;In Apache NiFi, the &lt;STRONG&gt;flow file got stuck permanently in queue when the downstream processor has some errors.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am looking to route the flow file to failure relationship so that I can handle the failure and extract the failure log. But in some cases the flow file got stuck in queue permanently which makes routing to failure relationship impossible.&lt;/P&gt;&lt;P&gt;Is there a way to resolve the issue of flow file getting stuck? If not, is there a way to get notified that a particular flow file waits in which queue and which downstream processor in the processor group has error, so that I can track the failure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apk132_1-1690967779195.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38132i6E57B346580DB5AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apk132_1-1690967779195.png" alt="apk132_1-1690967779195.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Downstream processor's settings and configuration:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apk132_2-1690967822948.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38133iC45D2F605FC068A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apk132_2-1690967822948.png" alt="apk132_2-1690967822948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apk132_3-1690967870819.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38134iBE0686EE2DDE807A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apk132_3-1690967870819.png" alt="apk132_3-1690967870819.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Nifi is the part of the application we use to process files. We are looking for handling failure in Nifi processors without explicitly visiting NiFi UI every time (Getting to know about failures in NiFi processors from the system instead of visiting NiFi UI ). In the case mentioned above, it is impossible to route to failure relationship.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 09:54:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374828#M242160</guid>
      <dc:creator>apk132</dc:creator>
      <dc:date>2023-08-02T09:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374836#M242162</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106317"&gt;@apk132&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged our NiFi experts &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42173"&gt;@ckumar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 12:14:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374836#M242162</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-08-02T12:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374863#M242169</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106317"&gt;@apk132&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What the first image you shared tells me is that your PublishKafka_2_6 processor received 3 FlowFile on its inbound connection.&amp;nbsp; Two of those were processed (at least one of those two resulted in an error triggering the red bulletin in upper right corner of the processor).&amp;nbsp; The third FlowFile is still associated to a running thread on the processor (indicated by the small "1" in the upper right corner or the processor) The stats show that 48 tasks successfully completed in the past 5 minutes yet you are saying this one FlowFile has been stuck that entire time?&amp;nbsp; How has the processor been scheduled?&lt;BR /&gt;&lt;BR /&gt;Is this a multi-node NiFi cluster?&amp;nbsp; Are the FlowFiles that are successfully processed being processed on a different node than the hung FlowFile is queued?&lt;BR /&gt;&lt;BR /&gt;When it comes to what appears to be a hung thread, getting a series of thread dumps of NIFi JVM spaced apart by 1 min or more can be useful for analysis.&amp;nbsp; You'll be looking to see if this thread stack is progressing or always showing exact same stack.&amp;nbsp; If it is changing then thread is not hung, but rather just long running.&amp;nbsp; If it is not changing, closure examination of the thread stack would help determine what that thread is waiting on.&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>Wed, 02 Aug 2023 18:53:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374863#M242169</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-08-02T18:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374870#M242174</link>
      <description>&lt;P&gt;Hi Matt. Thank you for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually as per the first image I attached, what I did was initiating a single flow file into the flow through Handle Http request processor by hitting an API only once. The initiated flow file got stuck in queue before the PublishKakfa_2_6 processor. What I tried is to route the flow file initiated to failure relationship so as get track of the failure. But it's not routed. So my question is whether there is a way to route the flow file to failure relationship without the flow file being stuck in queue?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;I intentionally gave the Publishkafka_2_6 processor's credentials wrong so that I can able to reproduce this scenario.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apk132_0-1691043271953.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38147i8FCBD65EC8AFA782/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apk132_0-1691043271953.png" alt="apk132_0-1691043271953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 06:20:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374870#M242174</guid>
      <dc:creator>apk132</dc:creator>
      <dc:date>2023-08-03T06:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374970#M242213</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106317"&gt;@apk132&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I see in your latest image that the PublishKafka_2_6 has successfully completed 21 tasks/thread in the last 5 minutes. I also see a red bulletin on the processor.&amp;nbsp; What is the exception being seen?&amp;nbsp; It looks like it may not be a hung thread? and perhaps a session rollback is happening instead of routing to failure. That may be how some types of exceptions are handled by this processor even though you have configured the Failure Strategy as "Route to Failure" for "Route On Failure".&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 20:47:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374970#M242213</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-08-04T20:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374972#M242215</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106317"&gt;@apk132&lt;/a&gt;&amp;nbsp;&amp;nbsp;I had something like this recently, but it was a result of a configuration error on the processor itself, and not anything to do with the flowfile.&amp;nbsp; Are you able to post the contents of the bulletin from the Bulletin Board screen?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 22:09:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374972#M242215</guid>
      <dc:creator>kellerj</dc:creator>
      <dc:date>2023-08-04T22:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374980#M242222</link>
      <description>&lt;P&gt;Thank you Matt for the reply. I also thought the same that may be some types of exceptions in the processor are handled in such a way that it cannot be routed to failure relationship.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 06:40:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374980#M242222</guid>
      <dc:creator>apk132</dc:creator>
      <dc:date>2023-08-07T06:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374981#M242223</link>
      <description>&lt;P&gt;Hi kellerj. Yes it was due to the configuration error on the processor and I was able to see the bulletin corresponding to that on the bulletin board. The intention here is to route to failure relationship incase of any failure so that I can extract the bulletin message and send to the system so that I can track it outside of Nifi.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 06:48:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/374981#M242223</guid>
      <dc:creator>apk132</dc:creator>
      <dc:date>2023-08-07T06:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/375003#M242240</link>
      <description>&lt;P&gt;FWIW - I did set up a monitoring mechanism for bulletins.&amp;nbsp; I have not really made a way to automatically associate the bulletins back to the flowfiles, but I have utilized the cluster-level Controller Services for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Under Reporting Task Controller Services:&lt;OL&gt;&lt;LI&gt;DBCPConnectionPool for the database connection&lt;/LI&gt;&lt;LI&gt;DatabaseRecordSink pointed at a table matching the internal BULLETINS data structure&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Under Reporting Tasks:&lt;OL&gt;&lt;LI&gt;QueryNiFiReportingTask which pulls from BULLETINS and structures into a record matching the table used by the above DatabaseRecordSink.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The reporting task is set to run every 5 minutes, so that it captures each set of bulletins before it cycles out of the in-memory data structures.&lt;/P&gt;&lt;P&gt;I then have other components reporting on records in that table for tracking by our other tools.&amp;nbsp; (And the flowfile ID is part of the bulletins structure - so it might be linkable back to whatever is stuck in the upstream connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 15:40:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/375003#M242240</guid>
      <dc:creator>kellerj</dc:creator>
      <dc:date>2023-08-07T15:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/375007#M242242</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106317"&gt;@apk132&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What is the full exception you are seeing so maybe i can dig deeper as to why that specific exception is not routing to failure?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 17:55:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/375007#M242242</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-08-07T17:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/375017#M242249</link>
      <description>&lt;P&gt;Hi Matt. The exception I am getting in PublishKafka 2_6 is,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PublishKafka_2_6[id=c448b32e-0189-1000-c518-0da7df8acb8a]&amp;nbsp;Processing&amp;nbsp;halted:&amp;nbsp;yielding&amp;nbsp;[1&amp;nbsp;sec]:&amp;nbsp;org.apache.kafka.common.errors.TimeoutException:&amp;nbsp;Timeout&amp;nbsp;expired&amp;nbsp;after&amp;nbsp;5000milliseconds&amp;nbsp;while&amp;nbsp;awaiting&amp;nbsp;InitProducerId&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Note: I have given the Kafka url invalid intentionally to fail the processor.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Aug 2023 04:46:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/375017#M242249</guid>
      <dc:creator>apk132</dc:creator>
      <dc:date>2023-08-08T04:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/375021#M242250</link>
      <description>&lt;P&gt;Hi Kellerj. Thank you for the reply. I will try this approach for my case. Can you please send the sample template for the flow you mentioned?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 05:13:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/375021#M242250</guid>
      <dc:creator>apk132</dc:creator>
      <dc:date>2023-08-08T05:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - Flow file stuck in queue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/375054#M242264</link>
      <description>&lt;P&gt;Sure.&amp;nbsp; I had to make some extract it from a larger PG and make some adjustments due to key code being in a parameter.&amp;nbsp; But the remainder of the parameters are really placeholders for your environment information.&amp;nbsp; The main complication might be that I used a few external controller services that you will have to replace.&amp;nbsp; But their names in the externalControllerServices JSON should help you replace them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.cloudera.com/t5/image/serverpage/image-id/39873i476F09A58C3FA22F/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Extract_Bulletins_To_Table.png" title="Extract_Bulletins_To_Table.png" /&gt;</description>
      <pubDate>Tue, 08 Aug 2023 15:54:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Flow-file-stuck-in-queue/m-p/375054#M242264</guid>
      <dc:creator>kellerj</dc:creator>
      <dc:date>2023-08-08T15:54:02Z</dc:date>
    </item>
  </channel>
</rss>

