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

David Handermann commented on NIFI-14212:
-----------------------------------------

Thanks for raising the question about the tests [~shubhrajain].

Can you clarify what existing tests you are referencing that fail with these 
changes?

As mentioned on the pull request, this is a vital part of the framework, so 
very careful consideration is necessary.

Tagging [~markap14] for additional perspective, but let's evaluate the expected 
behavior before moving to consider the pull request to make sure the changes 
are on track.

> Improper state for disabled processors
> --------------------------------------
>
>                 Key: NIFI-14212
>                 URL: https://issues.apache.org/jira/browse/NIFI-14212
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Mark Bean
>            Assignee: Shubhra
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> An INVALID processor can go to a STARTING state. Once in this state, the 
> processor cannot be DISABLED or STOPPED; it remains in STARTING until the 
> reason for being invalid has been corrected. And, once the invalid condition 
> is corrected, the processor immediately enters a RUNNING state.
> To reproduce create a 2-processor flow: GenerateFlowFile > UpdateAttribute. 
> Include a connection between them but do not add a connection or terminate 
> the 'success' relationship of UpdateAttribute. Use "Start" on the operate 
> palette or right-click context menu. 
> Now, stop all processors using the same method as starting. Attempts to start 
> all processors again fails. A dialog appears indicating that UpdateAttribute 
> "cannot be started because it is not stopped. Current state is STARTING." 
> The UpdateAttribute processor cannot be disabled because it is not in a 
> STOPPED state.
> Now, set the 'success' relationship to terminate. The processor immediately 
> goes into a RUNNING state. From the user perspective, this is a state change 
> from INVALID to RUNNING which should not be allowed.



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

Reply via email to