[ 
https://issues.apache.org/jira/browse/RATIS-2082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18125207#comment-18125207
 ] 

Tsz-wo Sze commented on RATIS-2082:
-----------------------------------

Ratis has a raftMetaConf command (RaftMetaConfCommand, RATIS-1860) for manually 
updating the local raft-meta.conf file (require restarting the server).  It was 
designed for fixing the address change problem.

Updating address in runtime is more tricky in general -- the peers cannot talk 
to each other when they don't have the correct address.  It may be possible is 
some special case such as changing one of the peer.

(Sorry that I missed this JIRA earlier.)

> RaftPeers equal should also check address
> -----------------------------------------
>
>                 Key: RATIS-2082
>                 URL: https://issues.apache.org/jira/browse/RATIS-2082
>             Project: Ratis
>          Issue Type: Bug
>          Components: raft-group
>            Reporter: Yi Zhu
>            Assignee: Siyao Meng
>            Priority: Major
>         Attachments: image-2024-05-09-14-29-02-449.png
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> We have two raft cluster,
> A cluster IP is
> A1:7082,A2:7082,A3:7082
> B cluster master ip is 
> B1:7082,B2:7082,B3:7082
>  
>  
> When we start A cluster we use a wrong config 
> A1:7082,A2:7082,B3:7082
> After we start the cluster we found we use wrong config.
> But this info has been write to raft-meta.conf.
> Then after we restart A cluster, when client connect to A cluster.
> It connect to A cluster follower then return the cached leader address, the 
> leader peer id is 3, but in the meta conf, the peer rpc link is B3:7082.
> Then cause it connect to cluster B.
>  
> Its caused by RaftPeer object equal only compare peerId cause it won't 
> refresh raft-meta.conf
> !image-2024-05-09-14-29-02-449.png|width=901,height=628!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to