mirror of https://github.com/apache/nifi.git
NIFI-3393 - replicates cluster/nodes/{id} to cluster coordinator. This closes #1443
This commit is contained in:
parent
e0e6f0bacb
commit
e113511fef
|
@ -512,6 +512,10 @@ public class ControllerResource extends ApplicationResource {
|
||||||
throw new IllegalClusterResourceRequestException("Only a node connected to a cluster can process the request.");
|
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
|
// get the specified relationship
|
||||||
final NodeDTO dto = serviceFacade.getNode(id);
|
final NodeDTO dto = serviceFacade.getNode(id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue