markap14 opened a new pull request, #11709: URL: https://github.com/apache/nifi/pull/11709
## Summary - Connector drain never finished when the Connector flow contained a disabled Processor, because Processor lifecycle `stop()` always waited on the scheduler. - `StandaloneProcessorLifecycle.stop()` now returns a completed future when the Processor is already physically stopped or disabled, matching Process Group stop handling. - `ConnectorDrainIT.testDrainFlowFiles` now includes a disabled Processor in the gated drain flow so this path is covered. ## Test plan - [x] `ConnectorDrainIT#testDrainFlowFiles` failed with a timeout while waiting for drain to complete on the original code - [x] Same test passes after the lifecycle change - [x] `ConnectorDrainIT` (full class) passes - [x] `nifi-framework-core` unit tests, Checkstyle, and PMD pass Jira: https://issues.apache.org/jira/browse/NIFI-16378 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
