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

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

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

NIFI-13777 Fixed Stateless Group Startup around Controller Services (#9291)

Fixed stateless group startup around Controller Services by changing the 
startup logic in two ways. First, we enable Controller Services before we 
create the Stateless Flow. Secondly, we do not bother enabling the ephemeral 
Controller Services that are created during the Stateless Flow 
creation/synchronization. This ensures that if Processors make use of a 
Controller Service during its @OnScheduled method (which is part of the 
Stateless Flow initialization process) that the Controller Service is Enabled. 
It also avoids calling @OnEnabled methods of Controller Services that will 
never actually be used, as Processors make use of the existing Controller 
Services when running within standard NiFi .

Signed-off-by: David Handermann <[email protected]>

> Stateless Process Groups fail to start if any Processor makes use of a 
> Controller Service in its @OnScheduled method
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-13777
>                 URL: https://issues.apache.org/jira/browse/NIFI-13777
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 2.0.0-M2, 2.0.0-M3, 2.0.0-M4
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 2.0.0-M5
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When starting a Stateless Process Group, if any of the Processors attempt to 
> access a Controller Service in its @OnScheduled method (e.g., ConsumeKafka) 
> the logs are filled with huge numbers of errors indicating that the processor 
> cannot start because the Controller Service is disabled.



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

Reply via email to