[
https://issues.apache.org/jira/browse/NIFI-3295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard updated NIFI-3295:
---------------------------------
Assignee: Pierre Villard
Status: Patch Available (was: Open)
> Node Reconnects When Deleting through API
> -----------------------------------------
>
> Key: NIFI-3295
> URL: https://issues.apache.org/jira/browse/NIFI-3295
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Affects Versions: 1.0.1
> Reporter: Josh Meyer
> Assignee: Pierre Villard
> Priority: Minor
>
> When deleting a node using the API a 200 code is returned, but the node will
> be reconnected. It seems as if it is required to first disconnect the node
> and then delete then node. It would be nice if a 400 code (invalid request)
> or something like this was returned explaining the error.
> Reproduce the node being deleted and reconnecting:
> {code}
> curl -X DELETE -k -v -i
> '<nifi-host>:9091/nifi-api/controller/cluster/nodes/<node-uuid>' --cert
> <path-to-keystore>:<keystore-password>
> {code}
> Getting the deletion to stick:
> {code}
> curl -X PUT -k -v -i
> '<nifi-host>:9091/nifi-api/controller/cluster/nodes/<node-uuid>' -H 'Origin:
> <nifi-host>:9091' -H 'Content-Type: application/json' --data-binary
> '{"node":{"nodeId":"<node-uuid>","status":"DISCONNECTING"}}' --cert
> <path-to-keystore>:<keystore-password>
> curl -X DELETE -k -v -i
> '<nifi-host>:9091/nifi-api/controller/cluster/nodes/<node-uuid>' --cert
> <path-to-keystore>:<keystore-password>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)