mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 15:06:00 +00:00
NIFI-2333: Consider reporting tasks and controller services when determining whether or not flow is empty
This closes #693 Signed-off-by: jpercivall <joepercivall@yahoo.com>
This commit is contained in:
parent
10b91ffe6c
commit
370d88eeeb
@ -162,7 +162,7 @@ public class StandardFlowSynchronizer implements FlowSynchronizer {
|
||||
try {
|
||||
if (initialized) {
|
||||
existingFlow = toBytes(controller);
|
||||
existingFlowEmpty = controller.getGroup(controller.getRootGroupId()).isEmpty();
|
||||
existingFlowEmpty = controller.getGroup(controller.getRootGroupId()).isEmpty() && controller.getAllReportingTasks().isEmpty() && controller.getAllControllerServices().isEmpty();
|
||||
} else {
|
||||
existingFlow = readFlowFromDisk();
|
||||
if (existingFlow == null || existingFlow.length == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user