Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-11580

NiFi does not stop gracefully when using DistributedMapCacheClient and Server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.21.0
    • 2.0.0-M1, 1.22.0
    • Extensions
    • 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

          Activity

            People

              mosermw Michael W Moser
              mosermw Michael W Moser
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h