adwk67 commented on code in PR #11201:
URL: https://github.com/apache/nifi/pull/11201#discussion_r3188666950


##########
nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java:
##########
@@ -745,17 +745,43 @@ private void synchronizeControllerServices(final 
ProcessGroup group, final Versi
             updateControllerService(addedService, proposedService, 
topLevelGroup);
         }
 
-        // Update all of the Controller Services to match the 
VersionedControllerService
+        // Update all Controller Services to match the 
VersionedControllerService.
+        // Services may be ENABLED here if the outer "affected components" 
pass did not
+        // disable them (e.g. COMPONENT_ADDED diffs are skipped by 
AffectedComponentSet).
+        // We must disable before calling updateControllerService, which calls 
setProperties
+        // which calls verifyModifiable and throws IllegalStateException on 
ENABLED services.
+        final long stopTimeout = System.currentTimeMillis() + 
syncOptions.getComponentStopTimeout().toMillis();

Review Comment:
   Done: d4666a4



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