Github user mcgilman commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2703#discussion_r190921858
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FlowController.java
---
@@ -3464,10 +3462,6 @@ public ReportingTaskNode createReportingTask(final
String type, final String id,
LoggableComponent<ReportingTask> task = null;
boolean creationSuccessful = true;
-
- // make sure the first reference to LogRepository happens outside
of a NarCloseable so that we use the framework's ClassLoader
- final LogRepository logRepository =
LogRepositoryFactory.getRepository(id);
--- End diff --
I don't think we can move this line. This needs to happen outside of the
NarCloseable. Please refer to JIRA it was added for additional information.
https://issues.apache.org/jira/browse/NIFI-5136
---