Github user markap14 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1585#discussion_r106506092
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/reporting/AbstractReportingTaskNode.java
---
@@ -125,7 +141,12 @@ public void setSchedulingPeriod(final String
schedulingPeriod) {
@Override
public ReportingTask getReportingTask() {
- return reportingTask;
+ return reportingTaskRef.get().getReportingTask();
+ }
+
+ @Override
+ public void setReportingTask(final LoggableComponent<ReportingTask>
reportingTask) {
+ this.reportingTaskRef.set(new ReportingTaskDetails(reportingTask));
--- End diff --
We should make sure here that the Reporting Task is stopped, similar to
Processors. And should also ensure that Controller Services are disabled when
calling setControllerService.
---
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.
---