NIFI-2628: Whenever a flow is inherited from cluster coordinator, save flow immediately to disk

This closes #967
This commit is contained in:
Mark Payne 2016-08-29 14:38:30 -04:00 committed by Oleg Zhurakousky
parent ba19238757
commit 1213b46632
1 changed files with 1 additions and 0 deletions

View File

@ -491,6 +491,7 @@ public class StandardFlowService implements FlowService, ProtocolHandler {
} else {
try {
loadFromConnectionResponse(response);
dao.save(controller, true);
} catch (final Exception e) {
logger.error("Failed to load flow from cluster due to: " + e, e);
handleConnectionFailure(e);