You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Michael W Moser (Jira)" <ji...@apache.org> on 2023/05/08 20:18:00 UTC

[jira] [Commented] (NIFI-11392) NiFi does not stop timely when using CRON scheduling

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

Michael W Moser commented on NIFI-11392:
----------------------------------------

This same behavior also happens with CRON scheduled reporting tasks.  The PR resolves this, too.

> 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: 10m
>  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)