[ 
https://issues.apache.org/jira/browse/NIFI-10051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17547510#comment-17547510
 ] 

ASF subversion and git services commented on NIFI-10051:
--------------------------------------------------------

Commit 35d8bb5ca95c077268f5b442222e3086cfd97377 in nifi's branch 
refs/heads/dependabot/maven/nifi-nar-bundles/nifi-standard-services/nifi-hbase_1_1_2-client-service-bundle/org.apache.hadoop-hadoop-common-3.2.3
 from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=35d8bb5ca9 ]

NIFI-10051: Clear Controller Services' state in a background thread instead of 
the web thread.

Signed-off-by: Matthew Burgess <[email protected]>

This closes #6078


> When a Controller Service is removed, its state should be cleared in a 
> background thread
> ----------------------------------------------------------------------------------------
>
>                 Key: NIFI-10051
>                 URL: https://issues.apache.org/jira/browse/NIFI-10051
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.17.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Currently, when a Processor is removed from the canvas, the State Manager's 
> onComponentRemoved method is called. This is called in a synchronous/blocking 
> manner. By default, the timeout to communicate with ZooKeeper is 30 seconds. 
> There are cases when the request can time out (for instance, due to improper 
> Kerberos configuration), and with a 30 second timeout, this often results in 
> nodes getting kicked out of the cluster.
> However, if the request fails, we simply log a warning and move on. As a 
> result, this synchronous network call should be moved to a background thread 
> to ensure that it does not interfere with the web request to remove the 
> component.
> This already was done in NIFI-1606 for Processors but it never got done for 
> Controller Services. We should do this for controller services as well.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to