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

ASF subversion and git services commented on NIFI-16341:
--------------------------------------------------------

Commit ec81225f5b9c197e4ebf406dfea3d33bb9db0f28 in nifi's branch 
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=ec81225f5b9 ]

NIFI-16341 Make controller service disable test deterministic (#11675)

> 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
>          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)

Reply via email to