Github user markap14 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2468#discussion_r174575890
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/StandardProcessorNode.java
---
@@ -1349,10 +1404,12 @@ private void initiateStart(final
ScheduledExecutorService taskScheduler, final l
LOG.debug("Successfully invoked @OnScheduled
methods of {} but scheduled state is no longer STARTING so will stop processor
now", processor);
// can only happen if stopProcessor was called
before service was transitioned to RUNNING state
+ activateThread();
try {
ReflectionUtils.quietlyInvokeMethodsWithAnnotation(OnUnscheduled.class,
processor, processContext);
- } finally {
--- End diff --
It shouldn't really matter -- the point of
quietlyInvokeMethodsWithAnnotation is that the method will not throw any
Exceptions. So whether it's in a finally block or not isn't really a big deal.
---