smengcl opened a new pull request, #1630:
URL: https://github.com/apache/ratis/pull/1630

   Generated-by: Claude Code (Opus 5.5)
   
   ## What changes were proposed in this pull request?
   
   A `setConfiguration` request with the same peer IDs and priorities but 
different addresses is treated as "no change", so the addresses stored in the 
Raft log and `raft-meta.conf` can never be updated.
   
   `RaftConfigurationImpl.hasNoChange` compares only IDs and priorities. This 
patch adds an overload that also compares peer addresses and uses it in 
`setConfigurationAsync`. `RaftPeer.equals` is not changed.
   
   Running servers keep their existing connections. The new addresses are used 
after a restart.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-2082
   
   ## How was this patch tested?
   
   Added `RaftReconfigurationBaseTest.testAddressChangeRequest`.
   
   `testNoChangeRequest` now sends the peers of the current configuration, 
since `cluster.getPeers()` returns bind addresses that differ from the 
configured ones.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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