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

NiFi shutdown is delayed using WriteAheadProvenanceRepository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 1.2.0
    • None
    • Core Framework

    Description

      I have noticed that when switching between the PersistentProvenanceRepository and the WriteAheadProvenanceRepository, the ./bin/nifi.sh stop command executes immediately on the PPR but exhausts the timeout on the WAPR. I'm guessing a file handle or indexer is not being closed correctly.

      1. On PPR
      hw12203:...space/nifi/nifi-assembly/target/nifi-1.2.0-SNAPSHOT-bin/nifi-1.2.0-SNAPSHOT (NIFI-3594) alopresto
      🔓 241s @ 15:57:27 $ nfkl
      
      Java home: /Users/alopresto/.jenv/versions/1.8
      NiFi home: /Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.2.0-SNAPSHOT-bin/nifi-1.2.0-SNAPSHOT
      
      Bootstrap Config File: /Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.2.0-SNAPSHOT-bin/nifi-1.2.0-SNAPSHOT/conf/bootstrap.conf
      
      2017-04-18 15:57:31,525 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi has accepted the Shutdown Command and is shutting down now
      2017-04-18 15:57:31,542 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 15:57:33,551 INFO [main] org.apache.nifi.bootstrap.Command NiFi has finished shutting down.
      
      1. On WAPR
      hw12203:...space/nifi/nifi-assembly/target/nifi-1.2.0-SNAPSHOT-bin/nifi-1.2.0-SNAPSHOT (NIFI-3594) alopresto
      🔓 320s @ 16:19:09 $ nfkl
      
      Java home: /Users/alopresto/.jenv/versions/1.8
      NiFi home: /Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.2.0-SNAPSHOT-bin/nifi-1.2.0-SNAPSHOT
      
      Bootstrap Config File: /Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.2.0-SNAPSHOT-bin/nifi-1.2.0-SNAPSHOT/conf/bootstrap.conf
      
      2017-04-18 16:19:12,193 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi has accepted the Shutdown Command and is shutting down now
      2017-04-18 16:19:12,207 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:14,216 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:16,229 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:18,242 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:20,250 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:22,262 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:24,276 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:26,290 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:28,304 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:30,315 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:32,328 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down...
      2017-04-18 16:19:32,336 WARN [main] org.apache.nifi.bootstrap.Command NiFi has not finished shutting down after 20 seconds. Killing process.
      2017-04-18 16:19:32,345 INFO [main] org.apache.nifi.bootstrap.Command NiFi has finished shutting down.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alopresto Andy LoPresto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: