NIFI-4799: - Ensure variable registry update request is marked completed. This closes #2421.
Signed-off-by: Mark Payne <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/a261a0d8 Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/a261a0d8 Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/a261a0d8 Branch: refs/heads/HDF-3.1-maint Commit: a261a0d86522f12d5cfcce02beec71bfdf3c11c3 Parents: 73a4909 Author: Matt Gilman <[email protected]> Authored: Mon Jan 22 12:09:15 2018 -0500 Committer: Mark Payne <[email protected]> Committed: Mon Jan 22 12:54:53 2018 -0500 ---------------------------------------------------------------------- .../main/java/org/apache/nifi/web/api/ProcessGroupResource.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/a261a0d8/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ProcessGroupResource.java ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ProcessGroupResource.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ProcessGroupResource.java index 6e99a07..b9840f1 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ProcessGroupResource.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ProcessGroupResource.java @@ -755,6 +755,9 @@ public class ProcessGroupResource extends ApplicationResource { SecurityContextHolder.getContext().setAuthentication(authentication); updateVariableRegistryReplicated(groupId, originalUri, activeAffectedProcessors, activeAffectedServices, updateRequest, requestVariableRegistryEntity); + + // ensure the request is marked complete + updateRequest.setComplete(true); } catch (final Exception e) { logger.error("Failed to update variable registry", e);
