Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7003

Issuing "nifi.sh stop" on deleted node makes it to join the cluster in a disconnected mode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.12.0
    • Component/s: Configuration
    • Labels:
      None

      Description

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

       

      nifi-toolkit/bin/cli.sh nifi disconnect-node
      nifi-toolkit/bin/cli.sh nifi offload-node
      

       

      once offloaded

       

      nifi-toolkit/bin/cli.sh nifi delete-node 
      

       

      Now what happens is if I issue

      nifi.sh stop

      command this node joins back the cluster as a disconnected node. 

      Found the relevant message in coordinator logs too  

       

      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
       
      

       

        Attachments

          Activity

            People

            • Assignee:
              suskuma Sushil Kumar
              Reporter:
              suskuma Sushil Kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m