[
https://issues.apache.org/jira/browse/NIFI-14212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17987265#comment-17987265
]
Shubhra commented on NIFI-14212:
--------------------------------
Hi team,
I noticed that the existing test for verifying processor state after syncing
{{flow.json.gz}} expects the processor to always be in the RUNNING state. But
if the processor was disabled before syncing, the test fails — which seems
expected, because a disabled processor should not start.
I wrote a separate test ({{{}testDisabledProcessorsRemainDisabled{}}}) to cover
the disabled processor case, and it passes correctly. But the original test
still fails when the processor is disabled.
Should we update the existing test to handle both {{RUNNING}} and {{DISABLED}}
states? Or would it be better to split the logic into two separate test cases —
one for enabled processors and one for disabled processors?
Just wanted to check the best direction before making changes.
Thanks!
> 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
>
> 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)