[
https://issues.apache.org/jira/browse/NIFI-3295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15838187#comment-15838187
]
ASF GitHub Bot commented on NIFI-3295:
--------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/nifi/pull/1444
> 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
> Fix For: 1.2.0
>
>
> 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)