diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java index bca7d81c84..a18d8e017a 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java @@ -1555,9 +1555,12 @@ public class StandardVersionedComponentSynchronizer implements VersionedComponen final Set referencingServices = referenceManager.getControllerServicesReferencing(parameterContext, paramName); for (final ControllerServiceNode referencingService : referencingServices) { + final boolean isServiceActive = referencingService.isActive(); stopControllerService(referencingService, null, timeout, synchronizationOptions.getComponentStopTimeoutAction(), componentsToRestart, servicesToRestart, synchronizationOptions); - servicesToRestart.add(referencingService); + if (isServiceActive) { + servicesToRestart.add(referencingService); + } } }