NIFI-4370 View Details of NiFi Data Provenance throws NPE when cluster mode. This closes #2137

This commit is contained in:
combine 2017-09-09 21:51:21 +09:00 committed by Matt Gilman
parent 9367c28064
commit 1aeb517c27
No known key found for this signature in database
GPG Key ID: DF61EC19432AEE37
1 changed files with 11 additions and 0 deletions

View File

@ -830,6 +830,17 @@ public abstract class ApplicationResource {
}
}
/**
* Replicates the request to the given node
*
* @param method the HTTP method
* @param nodeUuid the UUID of the node to replicate the request to
* @return the response from the node
* @throws UnknownNodeException if the nodeUuid given does not map to any node in the cluster
*/
protected Response replicate(final String method, final String nodeUuid) {
return replicate(method, getRequestParameters(), nodeUuid);
}
private void ensureFlowInitialized() {
if (!flowController.isInitialized()) {