<?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: Apache nifi-api is taking too long time to update variable registry in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-api-is-taking-too-long-time-to-update-variable/m-p/362989#M238893</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/37332"&gt;@hegdemahendra&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;When updating a NiFi variable a serious of steps needs to occur.&lt;/P&gt;&lt;DIV class="setting-name"&gt;Steps To Update Variables&lt;/DIV&gt;&lt;DIV class="setting-field"&gt;&lt;OL&gt;&lt;LI&gt;Identifying components affected&lt;/LI&gt;&lt;LI&gt;Stopping affected Processors&lt;/LI&gt;&lt;LI&gt;Disabling affected Controller Services&lt;/LI&gt;&lt;LI&gt;Applying Updates&lt;/LI&gt;&lt;LI&gt;Re-Enabling affected Controller Services&lt;/LI&gt;&lt;LI&gt;Restarting affected Processors&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So in this process what can lead to this taking a long time to complete is the Stopping of processors and disabling of controller services using that updated variable.&amp;nbsp; When NiFi requests a component to stop it transitions to a "stopping" or "disabling" stage.&amp;nbsp; During this phase the component will not linger be scheduled and the process waits for any existing threads being executed by those components to complete. Those threads do not get interrupted.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So when this take aa long time or "infinite" amount of time, troubleshooting this would require getting a series of thread dumps to see which threads are long running or perhaps hung preventing the impacted components from competing the thread execution that blocks the component from transition to a fully stopped or disabled state.&amp;nbsp; Understand that nothing in&amp;nbsp; a thread dump is going to directly point back to a very specific processor.&amp;nbsp; So it is important in your troubleshooting that you know what processors use the variable you are updating and look for threads that appear in the complete series of multiple thread dumps that relate back to those component classes.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also in cases were you see these long running calls, are they for a variables used consistently by the same set of components to help narrow your analysis.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 02 Feb 2023 21:04:36 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2023-02-02T21:04:36Z</dc:date>
    <item>
      <title>Apache nifi-api is taking too long time to update variable registry</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-api-is-taking-too-long-time-to-update-variable/m-p/362772#M238833</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using nifi-api to update the variable registry of specific processor groups.&lt;/P&gt;&lt;P&gt;It was working as expected, but in recent time its taking too long (some time infinite) time to complete the variable registry update.&lt;BR /&gt;However if I restart nifi and try again this var registry update api it works quickly as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it because of increased number/size of variable registry or any resource crunch ?&lt;BR /&gt;Could you please suggest a solution on this ?&lt;BR /&gt;&lt;BR /&gt;Any suggestion is much appreciated in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahendra&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 06:38:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-api-is-taking-too-long-time-to-update-variable/m-p/362772#M238833</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2023-02-01T06:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Apache nifi-api is taking too long time to update variable registry</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-api-is-taking-too-long-time-to-update-variable/m-p/362989#M238893</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/37332"&gt;@hegdemahendra&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;When updating a NiFi variable a serious of steps needs to occur.&lt;/P&gt;&lt;DIV class="setting-name"&gt;Steps To Update Variables&lt;/DIV&gt;&lt;DIV class="setting-field"&gt;&lt;OL&gt;&lt;LI&gt;Identifying components affected&lt;/LI&gt;&lt;LI&gt;Stopping affected Processors&lt;/LI&gt;&lt;LI&gt;Disabling affected Controller Services&lt;/LI&gt;&lt;LI&gt;Applying Updates&lt;/LI&gt;&lt;LI&gt;Re-Enabling affected Controller Services&lt;/LI&gt;&lt;LI&gt;Restarting affected Processors&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So in this process what can lead to this taking a long time to complete is the Stopping of processors and disabling of controller services using that updated variable.&amp;nbsp; When NiFi requests a component to stop it transitions to a "stopping" or "disabling" stage.&amp;nbsp; During this phase the component will not linger be scheduled and the process waits for any existing threads being executed by those components to complete. Those threads do not get interrupted.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So when this take aa long time or "infinite" amount of time, troubleshooting this would require getting a series of thread dumps to see which threads are long running or perhaps hung preventing the impacted components from competing the thread execution that blocks the component from transition to a fully stopped or disabled state.&amp;nbsp; Understand that nothing in&amp;nbsp; a thread dump is going to directly point back to a very specific processor.&amp;nbsp; So it is important in your troubleshooting that you know what processors use the variable you are updating and look for threads that appear in the complete series of multiple thread dumps that relate back to those component classes.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also in cases were you see these long running calls, are they for a variables used consistently by the same set of components to help narrow your analysis.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Feb 2023 21:04:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-api-is-taking-too-long-time-to-update-variable/m-p/362989#M238893</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-02-02T21:04:36Z</dc:date>
    </item>
  </channel>
</rss>

