You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andy LoPresto (JIRA)" <ji...@apache.org> on 2017/04/18 23:24:41 UTC

[jira] [Created] (NIFI-3712) NiFi shutdown is delayed using WriteAheadProvenanceRepository

Andy LoPresto created NIFI-3712:
-----------------------------------

             Summary: NiFi shutdown is delayed using WriteAheadProvenanceRepository
                 Key: NIFI-3712
                 URL: https://issues.apache.org/jira/browse/NIFI-3712
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 1.2.0
            Reporter: Andy LoPresto
            Priority: Trivial


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. 

# On PPR

{code}
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.
{code}

# On WAPR

{code}
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.
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)