Github user olegz commented on a diff in the pull request:
https://github.com/apache/nifi/pull/836#discussion_r74704476
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/StandardProcessorNode.java
---
@@ -1321,12 +1325,21 @@ public void run() {
this.unscheduled = true;
}
try {
- if (activeThreadMonitorCallback.call()) {
+ if (scheduleState.isScheduled()) {
+
schedulingAgent.unschedule(StandardProcessorNode.this, scheduleState);
+ }
--- End diff --
Trying to understand. The @OnStopped is not invoked until unscheduled flag
is set and given that OnUnschedule is a synchronous call how can ```if
(scheduleState.isScheduled()) {``` ever be true if the internal 'unscheduled'
flag is set.
---
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.
---