mirror of https://github.com/apache/nifi.git
NIFI-5940 Cluster Node Offload Hangs if any RPG on flow is Disabled
This closes #3255 Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
parent
412c4908e2
commit
35147a620f
|
@ -710,7 +710,9 @@ public class StandardFlowService implements FlowService, ProtocolHandler {
|
|||
.forEach(pn -> pn.getProcessGroup().terminateProcessor(pn));
|
||||
|
||||
// request to stop all remote process groups
|
||||
flowManager.getRootGroup().findAllRemoteProcessGroups().forEach(RemoteProcessGroup::stopTransmitting);
|
||||
flowManager.getRootGroup().findAllRemoteProcessGroups()
|
||||
.stream().filter(rpg -> rpg.isTransmitting())
|
||||
.forEach(RemoteProcessGroup::stopTransmitting);
|
||||
|
||||
// offload all queues on node
|
||||
final Set<Connection> connections = flowManager.findAllConnections();
|
||||
|
|
Loading…
Reference in New Issue