Sushil Kumar created NIFI-7003:
----------------------------------

             Summary: "nifi.sh stop" makes a deleted node to join the cluster 
in a disconnected mode
                 Key: NIFI-7003
                 URL: https://issues.apache.org/jira/browse/NIFI-7003
             Project: Apache NiFi
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 1.10.0
            Reporter: Sushil Kumar


As a process to descale the cluster, I did as following

 
{code:java}
nifi-toolkit/bin/cli.sh nifi disconnect-node
nifi-toolkit/bin/cli.sh nifi offload-node
{code}
 

once offloaded

 
{code:java}
nifi-toolkit/bin/cli.sh nifi delete-node 
{code}
 

Now what happens is if I issue
{code:java}
nifi.sh stop{code}
command this node joins back the cluster as a disconnected node. 

Found the relevant message in coordinator logs too  

 
{code:java}
2020-01-09 21:10:07,779 INFO [NiFi Web Server-18] 
o.a.n.c.c.node.NodeClusterCoordinator Requesting that node-3:8080 disconnect 
due to User anonymous requested that node be disconnected from cluster
2020-01-09 21:10:07,779 INFO [NiFi Web Server-18] 
o.a.n.c.c.node.NodeClusterCoordinator Status of node-3:8080 changed from 
NodeConnectionStatus[nodeId=node-3:8080, state=CONNECTED, updateId=121] to 
NodeConnectionStatus[nodeId=node-3:8080, state=DISCONNECTED, Disconnect 
Code=User Disconnected Node, Disconnect Reason=User anonymous requested that 
node be disconnected from cluster, updateId=126]
2020-01-09 21:10:07,791 INFO [Disconnect node-3:8080] 
o.a.n.c.c.node.NodeClusterCoordinator Event Reported for node-3:8080 -- Node 
disconnected due to User anonymous requested that node be disconnected from 
cluster
2020-01-09 21:10:11,087 INFO [NiFi Web Server-20] 
o.a.n.c.c.node.NodeClusterCoordinator Requesting that node-3:8080 is offloaded 
due to User anonymous requested that node be offloaded
2020-01-09 21:10:11,087 INFO [NiFi Web Server-20] 
o.a.n.c.c.node.NodeClusterCoordinator Status of node-3:8080 changed from 
NodeConnectionStatus[nodeId=node-3:8080, state=DISCONNECTED, Disconnect 
Code=User Disconnected Node, Disconnect Reason=User anonymous requested that 
node be disconnected from cluster, updateId=126] to 
NodeConnectionStatus[nodeId=node-3:8080, state=OFFLOADING, Offload Code=Node 
Offloaded, Offload Reason=User anonymous requested that node be offloaded, 
updateId=127]
2020-01-09 21:10:11,092 INFO [Offload node-3:8080] 
o.a.n.c.c.node.NodeClusterCoordinator Event Reported for node-3:8080 -- Node 
was offloaded due to User anonymous requested that node be offloaded
2020-01-09 21:10:11,240 INFO [Process Cluster Protocol Request-5] 
o.a.n.c.c.node.NodeClusterCoordinator Status of node-3:8080 changed from 
NodeConnectionStatus[nodeId=node-3:8080, state=OFFLOADING, Offload Code=Node 
Offloaded, Offload Reason=User anonymous requested that node be offloaded, 
updateId=127] to NodeConnectionStatus[nodeId=node-3:8080, state=OFFLOADED, 
Offload Code=null, Offload Reason=null, updateId=129]
2020-01-09 21:10:11,243 INFO [Process Cluster Protocol Request-5] 
o.a.n.c.p.impl.SocketProtocolListener Finished processing request 
fe2684bb-7cf2-44bf-ab40-73c986b60921 (type=NODE_STATUS_CHANGE, length=1562 
bytes) from node-3 in 5 millis
2020-01-09 21:10:13,565 INFO [NiFi Web Server-19] 
o.a.n.c.c.node.NodeClusterCoordinator Event Reported for node-3:8080 -- User 
anonymous requested that node be removed from cluster
2020-01-09 21:11:14,419 INFO [Process Cluster Protocol Request-4] 
o.a.n.c.c.node.NodeClusterCoordinator Status of node-3:8080 changed from null 
to NodeConnectionStatus[nodeId=node-3:8080, state=DISCONNECTED, Disconnect 
Code=Node was Shutdown, Disconnect Reason=Node was Shutdown, updateId=130]
2020-01-09 21:11:14,430 INFO [Process Cluster Protocol Request-4] 
o.a.n.c.p.impl.SocketProtocolListener Finished processing request 
768d3441-64a0-4a01-9ae6-a019d98ffa75 (type=NODE_STATUS_CHANGE, length=1645 
bytes) from node-3 in 17 millis
 
{code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to