smengcl commented on PR #1630: URL: https://github.com/apache/ratis/pull/1630#issuecomment-6068637693
> @smengcl , Updating address in runtime is tricky in general. When the peers do not have the correct addresses at startup, how are they supposed to talk to each others? @szetszwo Thanks for taking a look. The use case is the Ozone IPv6 work (HDDS-15763, design in apache/ozone#10981), which I should have mentioned earlier. An existing SCM or OM HA group may have IPv4 literal peer addresses stored in the Raft log and `raft-meta.conf`. To move such a group to IPv6 without recreating it (HDDS-16136), the plan is: 1. Start IPv6 listeners on all peers while the IPv4 addresses stay reachable. The group keeps running on the old addresses. 2. Send one `setConfiguration` with the same peer IDs and the new IPv6 addresses, and wait for it to commit. 3. Update the Ozone configuration and restart the peers, then remove the IPv4 addresses. Step 2 does not work today. The request returns success but nothing is written, so the IPv4 addresses stay in the stored configuration. --- On your question, the peers always have working addresses at startup in this procedure, because the old addresses stay reachable until the new ones are committed and the peers have been restarted. This patch is not meant to repair a group whose peers cannot reach each other. Without a leader the request cannot be committed, and the offline `raftMetaConf` command is still the way to fix that. The patch also does not change the connections of running servers. `PeerProxyMap` keeps the address it already has for a peer ID. -- 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]
