[
https://issues.apache.org/jira/browse/NIFI-15170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18034778#comment-18034778
]
ASF subversion and git services commented on NIFI-15170:
--------------------------------------------------------
Commit 8311461ec2aab009deba67152cfe3be1559e157d in nifi's branch
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=8311461ec2 ]
NIFI-15170 Enabled Cluster State Provider on Flow Controller creation (#10487)
- Updated FlowController to set the State Provider's cluster enabled flag to
true in the FlowController constructor instead of waiting for the connection to
cluster to complete
Signed-off-by: David Handermann <[email protected]>
> Cluster State not returned to Controller Services on Startup
> ------------------------------------------------------------
>
> Key: NIFI-15170
> URL: https://issues.apache.org/jira/browse/NIFI-15170
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 0.5.0, 1.16.3, 1.18.0, 1.19.0, 1.20.0, 1.19.1, 1.21.0,
> 1.22.0, 1.23.0, 1.24.0, 1.23.1, 1.23.2, 1.25.0, 1.26.0, 1.27.0, 1.28.0,
> 2.0.0, 2.1.0, 1.28.1, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0
> Reporter: David Handermann
> Assignee: Mark Payne
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Controller Services that request state information using the {{CLUSTER}}
> scope in a method annotated with {{OnEnabled}} may not receive the cluster
> state when the framework is starting.
> The framework {{StandardStateManager.getProvider()}} method checks whether a
> Cluster State Provider exists and is enabled, returning the Local State
> Provider when the Cluster State Provider is not enabled. On framework
> startup, the {{FlowController}} does not enable the Cluster State Provider
> until after the framework is enabled for clustering. As a result, the Local
> State Provider can be returned, even when the a Controller Service requests
> state using the {{CLUSTER}} scope.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)