Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.21.0
-
None
Description
When using a DistributedMapCacheClientService and DistributedMapCacheServer, and the DistributedMapCacheClientService has been enabled, then NiFi does not stop within the graceful.shutdown.seconds period and has to be killed. It would be nice to clean this up.
I setup a DistributedMapCacheClientService and DistributedMapCacheServer to talk to each other, enabled both, then disabled DistributedMapCacheClientService. I stopped NiFi and it was killed after 20 seconds instead of stopping in 2 or 3 seconds.
2023-05-22 18:33:25,575 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi has accepted the Shutdown Command and is shutting down now
...
2023-05-22 18:33:45,713 INFO [main] org.apache.nifi.bootstrap.Command NiFi PID [15127] shutdown in progress...
2023-05-22 18:33:45,720 WARN [main] org.apache.nifi.bootstrap.Command NiFi PID [15127] shutdown not completed after 20 seconds: Killing process
2023-05-22 18:33:45,728 INFO [main] org.apache.nifi.bootstrap.Command NiFi PID [15127] shutdown completed
This was mentioned in a PR for NIFI-10232 (https://github.com/apache/nifi/pull/6221)
Attachments
Issue Links
- relates to
-
NIFI-12370 DistributedMapCacheClientService leaks threads
- Resolved
- links to