Github user JPercivall commented on a diff in the pull request:
https://github.com/apache/nifi-minifi/pull/68#discussion_r93529968
--- Diff:
minifi-bootstrap/src/main/java/org/apache/nifi/minifi/bootstrap/ShutdownHook.java
---
@@ -55,10 +55,12 @@ public void run() {
System.out.println("Initiating shutdown of bootstrap change
ingestors...");
ConfigurationChangeCoordinator notifier =
runner.getChangeCoordinator();
- try {
- notifier.close();
- } catch (IOException ioe) {
- System.out.println("Could not successfully stop notifier due
to " + ioe);
+ if (notifier != null) {
--- End diff --
After attempting to start without setting the file path I see the following
message printed to the terminal ~20 seconds after the initial "start" command
ends (and gives control back to the user). Is there a way to check if the
MiNiFi instance was ever started in the first place before attempting to stop
it?
```
MiNiFi has not finished shutting down after 20 seconds. Killing process.
MiNiFi is done shutting down
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---