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

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

Commit eca4f5d68ffe62e4f4671847b8e1def4c53b0e2d in nifi's branch 
refs/heads/main from Michael W Moser
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=eca4f5d68f ]

NIFI-11392 for CRON scheduled components, improved cancellation of … (#7232)

NIFI-11392 for CRON scheduled components, improved cancellation of futures for 
thread cleanup

> NiFi does not stop timely when using CRON scheduling
> ----------------------------------------------------
>
>                 Key: NIFI-11392
>                 URL: https://issues.apache.org/jira/browse/NIFI-11392
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.21.0
>            Reporter: Michael W Moser
>            Assignee: Michael W Moser
>            Priority: Minor
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When using CRON scheduling on at least 1 processor in a flow, and any CRON 
> driven processor has been scheduled at least once, then NiFi does not stop 
> within the graceful.shutdown.seconds period and has to be killed.  If 
> possible it would be nice to clean this up.
> I setup GenerateFlowFile with a CRON schedule of "0 * * * * ?".  After it has 
> run once, I stopped NiFi and it was killed after 20 seconds instead of 
> stopping in 2 or 3 seconds.
> 2023-04-06 14:58:07,495 INFO [main] org.apache.nifi.bootstrap.Command Apache 
> NiFi has accepted the Shutdown Command and is shutting down now
> ...
> 2023-04-06 14:58:27,924 INFO [main] org.apache.nifi.bootstrap.Command NiFi 
> PID [4625] shutdown in progress...
> 2023-04-06 14:58:27,953 WARN [main] org.apache.nifi.bootstrap.Command NiFi 
> PID [4625] shutdown not completed after 20 seconds: Killing process
> 2023-04-06 14:58:27,985 INFO [main] org.apache.nifi.bootstrap.Command NiFi 
> PID [4625] shutdown completed



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to