mattyb149 commented on a change in pull request #5762:
URL: https://github.com/apache/nifi/pull/5762#discussion_r814226053
##########
File path:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-headless-server/src/main/java/org/apache/nifi/headless/HeadlessNiFiServer.java
##########
@@ -215,6 +228,14 @@ public StatusHistoryDumpFactory
getStatusHistoryDumpFactory() {
public void stop() {
try {
flowService.stop(false);
+
+ try {
+ if (narAutoLoader != null) {
+ narAutoLoader.stop();
Review comment:
Good catch, I'll look into who is closing it before HeadlessNiFiServer,
but will also put in some defensive code so you can call stop() more than once
without getting an NPE.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]