From e113511fef2f408f24b05da28046d8a3de3b228a Mon Sep 17 00:00:00 2001 From: Pierre Villard Date: Wed, 25 Jan 2017 15:31:39 +0100 Subject: [PATCH] NIFI-3393 - replicates cluster/nodes/{id} to cluster coordinator. This closes #1443 --- .../main/java/org/apache/nifi/web/api/ControllerResource.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ControllerResource.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ControllerResource.java index 86ca792fcc..1e56dbb568 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ControllerResource.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ControllerResource.java @@ -512,6 +512,10 @@ public class ControllerResource extends ApplicationResource { throw new IllegalClusterResourceRequestException("Only a node connected to a cluster can process the request."); } + if (isReplicateRequest()) { + return replicate(HttpMethod.GET, getClusterCoordinatorNode()); + } + // get the specified relationship final NodeDTO dto = serviceFacade.getNode(id);