NIFI-1429: - Only attempting to verify disabling of a referenced controller service when it's active.

Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
Matt Gilman 2016-01-22 15:59:27 -05:00 committed by Mark Payne
parent 8392b46597
commit 2f5f7b8302
1 changed files with 6 additions and 2 deletions

View File

@ -207,8 +207,10 @@ public class StandardControllerServiceProvider implements ControllerServiceProvi
final Set<ControllerServiceNode> serviceSet = new HashSet<>(toDisable);
for (final ControllerServiceNode nodeToDisable : toDisable) {
if (nodeToDisable.isActive()) {
nodeToDisable.verifyCanDisable(serviceSet);
}
}
Collections.reverse(toDisable);
processScheduler.disableControllerServices(toDisable);
@ -593,9 +595,11 @@ public class StandardControllerServiceProvider implements ControllerServiceProvi
final Set<ControllerServiceNode> serviceSet = new HashSet<>(toDisable);
for (final ControllerServiceNode nodeToDisable : toDisable) {
if (nodeToDisable.isActive()) {
nodeToDisable.verifyCanDisable(serviceSet);
}
}
}
@Override
public void verifyCanStopReferencingComponents(final ControllerServiceNode serviceNode) {