[
https://issues.apache.org/jira/browse/NIFI-16341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-16341.
-----------------------------------
Fix Version/s: 2.13.0
Resolution: Fixed
> Make controller service disable scheduler test deterministic
> ------------------------------------------------------------
>
> Key: NIFI-16341
> URL: https://issues.apache.org/jira/browse/NIFI-16341
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Fix For: 2.13.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {{TestStandardProcessScheduler.validateNeverEnablingServiceCanStillBeDisabled()}}
> intermittently fails with {{expected: <0> but was: <1>}} on the
> {{disableInvocationCount()}} assertion.
> After [NIFI-16288], disabling a Controller Service that is still in
> {{ENABLING}} interrupts the active {{@OnEnabled}} invocation and then runs
> {{@OnDisabled}}. The test previously asserted the old transient behavior:
> {{DISABLING}} state and zero {{@OnDisabled}} invocations immediately after
> calling {{disableControllerService()}}.
> Because disable is asynchronous, the test can pass or fail depending on
> timing. The test should wait for the returned disable future and verify the
> final {{DISABLED}} state with one {{@OnDisabled}} invocation.
> Failed GitHub Actions job:
> https://github.com/apache/nifi/actions/runs/34631800449/job/103370270431?pr=11164
--
This message was sent by Atlassian Jira
(v8.20.10#820010)