exceptionfactory commented on code in PR #10630:
URL: https://github.com/apache/nifi/pull/10630#discussion_r2619741954


##########
nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/dao/impl/StandardControllerServiceDAO.java:
##########
@@ -186,6 +188,25 @@ public ControllerServiceNode updateControllerService(final 
ControllerServiceDTO
                 if 
(ControllerServiceState.ENABLED.equals(purposedControllerServiceState)) {
                     serviceProvider.enableControllerService(controllerService);
                 } else if 
(ControllerServiceState.DISABLED.equals(purposedControllerServiceState)) {
+                    // First, unschedule all referencing schedulable 
components (processors, reporting tasks, etc.)
+                    final Map<ComponentNode, Future<Void>> unscheduleFutures = 
serviceProvider.unscheduleReferencingComponents(controllerService);

Review Comment:
   Sounds good, that seems reasonable under the circumstances.



-- 
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]

Reply via email to