mirror of https://github.com/apache/nifi.git
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:
parent
5470de949e
commit
cea569169f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue