[
https://issues.apache.org/jira/browse/RATIS-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17821803#comment-17821803
]
Tsz-wo Sze commented on RATIS-2029:
-----------------------------------
bq. A and D both have a same RaftPeerID 0.
Different servers should use different RaftPeerIDs. Is it possible for your
case?
bq. ... I am wondering if there's way to tell a peer's comm address in the
requestVote log messages.
We have the RaftGroup committed in the log. We may verify a server with all the
details (e.g. addresses) in the committed RaftGroup. However, it may lead to
some inconvenience -- D won't be able to join the cluster in your case.
> Differentiate RaftPeerID among separate clusters
> ------------------------------------------------
>
> Key: RATIS-2029
> URL: https://issues.apache.org/jira/browse/RATIS-2029
> Project: Ratis
> Issue Type: Wish
> Reporter: Song Ziyang
> Priority: Minor
> Attachments: 18751709081632_.pic.jpg
>
>
> Scenario:
> Old cluster contained a RaftGroup G with peers (A, B, C).
> After shutting down old cluster, we started a new cluster which also
> contained a RaftGroup G with peers (B, C, D).
> A and D both have a same RaftPeerID 0.
> However, by mistake, A is not properly shut down and will still send out
> RequestVote RPCs. The new cluster group will consider A a member of the group
> since it has a valid raft peer id and *won't shut it down.* (see the logs, 0
> rejects a requestVote from peer 0)
> Currently we only identify a peer through \{peerId}@group-${groupId}. I am
> wondering if there's way to tell a peer's comm address in the requestVote log
> messages.
> cc [~tanxinyu]. Also what do you think [~szetszwo] ?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)