You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/03/23 17:22:00 UTC

[jira] [Commented] (NIFI-11290) When Primary Node changes, components should be notified in a background thread

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

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

Commit 016d58612c78a43f67d73ee848621e3124af3ca2 in nifi's branch refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=016d58612c ]

NIFI-11290 Run Component Primary Node State changes in background thread

- Ensure that components are notified that primary node has changed in a background thread instead of the Leader Election thread and activate/deactivate the thread in the case of Processors so that they can be viewed in the UI and terminated

- Fixed system tests that would fail intermittently because they did not wait for node disconnection to complete and did not properly switch the client to look at the connected node before checking cluster status

This closes #7052

Signed-off-by: David Handermann <ex...@apache.org>


> When Primary Node changes, components should be notified in a background thread
> -------------------------------------------------------------------------------
>
>                 Key: NIFI-11290
>                 URL: https://issues.apache.org/jira/browse/NIFI-11290
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.latest, 2.latest
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When Primary Node changes, all components (Processors, Controller Services, Reporting Tasks) have the ability to be notified via the {{@OnPrimaryNodeChanged}} annotation. This is done in the FlowController from the LeaderElection thread.
> However, if a component blocks indefinitely, that thread is blocked, and there's no way to terminate it.
> This should instead be done in a background thread.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)