NIFI-7672 Remove filtering of invalid components when getting service ids to enable, lower layers will already skip enabling invalid services, so we want to include services that may become valid when enabling their dependent services

This commit is contained in:
Bryan Bende 2020-07-24 12:00:43 -04:00 committed by markap14
parent 5470de949e
commit cea569169f
1 changed files with 1 additions and 2 deletions

View File

@ -37,7 +37,6 @@ import org.apache.nifi.cluster.coordination.ClusterCoordinator;
import org.apache.nifi.cluster.coordination.node.NodeConnectionState;
import org.apache.nifi.cluster.manager.NodeResponse;
import org.apache.nifi.cluster.protocol.NodeIdentifier;
import org.apache.nifi.components.validation.ValidationStatus;
import org.apache.nifi.connectable.Port;
import org.apache.nifi.controller.ProcessorNode;
import org.apache.nifi.controller.ScheduledState;
@ -861,7 +860,7 @@ public class FlowResource extends ApplicationResource {
final Predicate<ControllerServiceNode> filter;
if (ControllerServiceState.ENABLED.equals(desiredState)) {
filter = service -> !service.isActive() && service.getValidationStatus() == ValidationStatus.VALID;
filter = service -> !service.isActive();
} else {
filter = ControllerServiceNode::isActive;
}