mirror of https://github.com/apache/nifi.git
NIFI-11330: Restarting service referenced by parameter only when service is active (#7078)
This commit is contained in:
parent
24bbe51b54
commit
9de93f19a4
|
@ -1555,9 +1555,12 @@ public class StandardVersionedComponentSynchronizer implements VersionedComponen
|
|||
final Set<ControllerServiceNode> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue