Mark Bean created NIFI-14212:
--------------------------------
Summary: 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
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)