<?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: The InvokeHttp Processor's 'Retry' option is causing the flow to queue up after the retry attempts. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404585#M252342</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I am following your description correctly, It appears to be working as designed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; The number of retry attempts is set to 3. However, after all retry attempts are exhausted, the process does not complete and ends up queuing in the Retry relationship.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When you set "Retry" on a relationship, it tell NiFi to attempt that many retries before on the component &lt;U&gt;BEFORE&lt;/U&gt; routing the FlowFile to the relationship (So FlowFile stays on current inbound connection and you see the hour glass indicating a FlowFile is penalized on that connection).&amp;nbsp; See in your dataflow InvokeHTTP will retry up to 3 times to process the inbound FlowFile. If processing of the FlowFile results in a "retry" relationship destination, it will get penalized again until configured number of retries completes and the route to "retry" relationship connection.&amp;nbsp; And that is waht we see happening in your dataflow.&amp;nbsp; After those three attempts the FlowFile get transferred to "retry" relationship which you have in a connection looping back on the processor.&amp;nbsp; We then see the hour glass there meaning the 3 reties is happening again.&amp;nbsp; This will continue forever unless that FlowFile is eventually successful.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think what you really wanted to do is retry 3 times and if all three times result in routing to retry relationship, terminate the FlowFile (delete it).&amp;nbsp; &amp;nbsp; So in this case you would check both "terminate" and "retry" boxed on the retry relationship.&amp;nbsp; After 3 unsuccess FlowFile get terminated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you want to retain the FlowFile after 3 failed retry attempts, don't loop the "retry" relationship back on the processor, but instead route to some other processor for your error handling/notification/etc...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2025 18:17:46 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-03-21T18:17:46Z</dc:date>
    <item>
      <title>The InvokeHttp Processor's 'Retry' option is causing the flow to queue up after the retry attempts.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404574#M252339</link>
      <description>&lt;P&gt;I have configured an InvokeHttp Processor with the 'Retry' relationship enabled to capture HTTP status codes between 500 and 599 and initiate retries. I connected the 'Retry' relationship back to the InvokeHTTP processor to enable automatic reattempts. The number of retry attempts is set to 3. However, after all retry attempts are exhausted, the process does not complete and ends up queuing in the Retry relationship, as shown below:&lt;/P&gt;&lt;P&gt;Could you please help how to fix it?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 480px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44465i44A31569E0AAE0E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44466iF6ACD1ABBE7576A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 995px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44467i2F1BEF4A8075A420/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3b.png" style="width: 987px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44468iF4F06211AF43E8B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="3b.png" alt="3b.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.cloudera.com/t5/image/serverpage/image-id/44469i74D2A57ABFBA01AB/image-size/large?v=v2&amp;amp;px=999" border="0" alt="4.png" title="4.png" /&gt;</description>
      <pubDate>Fri, 21 Mar 2025 16:03:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404574#M252339</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2025-03-21T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: The InvokeHttp Processor's 'Retry' option is causing the flow to queue up after the retry attempts.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404581#M252340</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 16:43:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404581#M252340</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2025-03-21T16:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: The InvokeHttp Processor's 'Retry' option is causing the flow to queue up after the retry attempts.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404584#M252341</link>
      <description>&lt;P&gt;This may be related to&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/NIFI-11783" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-11783&lt;/A&gt;&amp;nbsp;which was fixed in CFM 2.1.6. Is upgrading your CFM an option?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 16:57:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404584#M252341</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2025-03-21T16:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: The InvokeHttp Processor's 'Retry' option is causing the flow to queue up after the retry attempts.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404585#M252342</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I am following your description correctly, It appears to be working as designed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; The number of retry attempts is set to 3. However, after all retry attempts are exhausted, the process does not complete and ends up queuing in the Retry relationship.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When you set "Retry" on a relationship, it tell NiFi to attempt that many retries before on the component &lt;U&gt;BEFORE&lt;/U&gt; routing the FlowFile to the relationship (So FlowFile stays on current inbound connection and you see the hour glass indicating a FlowFile is penalized on that connection).&amp;nbsp; See in your dataflow InvokeHTTP will retry up to 3 times to process the inbound FlowFile. If processing of the FlowFile results in a "retry" relationship destination, it will get penalized again until configured number of retries completes and the route to "retry" relationship connection.&amp;nbsp; And that is waht we see happening in your dataflow.&amp;nbsp; After those three attempts the FlowFile get transferred to "retry" relationship which you have in a connection looping back on the processor.&amp;nbsp; We then see the hour glass there meaning the 3 reties is happening again.&amp;nbsp; This will continue forever unless that FlowFile is eventually successful.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think what you really wanted to do is retry 3 times and if all three times result in routing to retry relationship, terminate the FlowFile (delete it).&amp;nbsp; &amp;nbsp; So in this case you would check both "terminate" and "retry" boxed on the retry relationship.&amp;nbsp; After 3 unsuccess FlowFile get terminated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you want to retain the FlowFile after 3 failed retry attempts, don't loop the "retry" relationship back on the processor, but instead route to some other processor for your error handling/notification/etc...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 18:17:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404585#M252342</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-03-21T18:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: The InvokeHttp Processor's 'Retry' option is causing the flow to queue up after the retry attempts.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404590#M252344</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; for your valuable input.&lt;/P&gt;&lt;P&gt;Yes, as you mentioned, my requirement is to retry 3 times, and if all three attempts result in routing to the retry relationship, terminate the FlowFile.&lt;/P&gt;&lt;P&gt;I tried both options you mentioned.&lt;/P&gt;&lt;P&gt;The first option doesn’t seem to be possible. I tried checking both the "terminate" and "retry" boxes on the retry relationship, but an error popped up: "Cannot automatically terminate 'Retry' relationship because a connection already exists with this relationship." Since I’ve already connected the retry relationship back to the InvokeHttp processor, it’s not allowing me to enable "terminate."&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please provide more input on this option?&lt;/P&gt;&lt;P&gt;The second option is working fine. Instead of looping the "retry" relationship back to the processor, I routed it to another processor. After the 3 retry attempts, it routes to the next processor and terminates the FlowFile.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.cloudera.com/t5/image/serverpage/image-id/44475i19105DEE1617DB1B/image-size/large?v=v2&amp;amp;px=999" border="0" alt="5.png" title="5.png" /&gt;</description>
      <pubDate>Sat, 22 Mar 2025 05:19:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404590#M252344</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2025-03-22T05:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: The InvokeHttp Processor's 'Retry' option is causing the flow to queue up after the retry attempts.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404637#M252347</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;Please disregard my previous response.&lt;BR /&gt;&lt;BR /&gt;I removed the retry relationship which is connecting back to the InvokeHttp Processor and&amp;nbsp;&amp;nbsp;I am able to check both the "terminate" and "retry" boxes.&amp;nbsp; The retry option is working as expected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 07:12:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404637#M252347</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2025-03-24T07:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: The InvokeHttp Processor's 'Retry' option is causing the flow to queue up after the retry attempts.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404711#M252358</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It can get confusing.&amp;nbsp; Relationships and Connections are two different things.&lt;BR /&gt;&lt;BR /&gt;You can think of "relationships" as the component processor's internal code routing and "Connections" are the external NiFi framework routing of the FlowFile output by that processor.&lt;BR /&gt;&lt;BR /&gt;A processor unique code says when X happens route FlowFile to relationship Y.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;The framework says allows you to create a connection from one components to another and assign one or more of a processor's relationship to it.&amp;nbsp; Or if the the relationship is allocated to "terminate", the framework can properly handle the removal/clean-up of that FlowFile.&amp;nbsp; &amp;nbsp;So the frameworks says: "Hey, you can't terminate a FlowFile I am suppose to route via an existing connection."&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 16:37:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404711#M252358</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-03-24T16:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: The InvokeHttp Processor's 'Retry' option is causing the flow to queue up after the retry attempts.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404747#M252374</link>
      <description>&lt;P&gt;Thank you, &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;, for the additional information. I really appreciate you providing timely and clear solutions. You’re awesome!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 04:53:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-InvokeHttp-Processor-s-Retry-option-is-causing-the-flow/m-p/404747#M252374</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2025-03-25T04:53:09Z</dc:date>
    </item>
  </channel>
</rss>

