rakesh-rsky opened a new pull request, #11212:
URL: https://github.com/apache/nifi/pull/11212

   ## Summary
   
   During cluster node reconnection, StandardConnection.setDestination() throws 
an IllegalStateException ("Cannot change destination while destination is 
running") when the destination is a RemoteGroupPort. Remote ports are managed 
by the cluster coordinator and can legally be running during reconnect — they 
should be exempt from this guard, just like Funnel and NiFiPort.
   
   ## Changes
   
   - Added RemoteGroupPort to the instanceof-check exemption list in 
StandardConnection.setDestination().
   - RemoteGroupPort was already imported in the file; no new imports needed.
   
   ## Testing
   
   - Reproducer: disconnect a node from a cluster that has a Remote Process 
Group destination, then reconnect — the ISE no longer fires.
   - Existing unit tests pass.
   
   Fixes: https://issues.apache.org/jira/browse/NIFI-15906


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to