[ 
https://issues.apache.org/jira/browse/NIFI-3295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15838183#comment-15838183
 ] 

ASF subversion and git services commented on NIFI-3295:
-------------------------------------------------------

Commit 1a6802a0166127e80700d13581aaac2166047d4b in nifi's branch 
refs/heads/master from [~pvillard]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=1a6802a ]

NIFI-3295 - ensures node is disconnected before trying to remove it. This 
closes #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
>
> 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)

Reply via email to