[
https://issues.apache.org/jira/browse/RATIS-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17830027#comment-17830027
]
Xinyu Tan commented on RATIS-2029:
----------------------------------
Could you please tells more about `For detecting misconfiguration, we may
enforce address validation then`? Thanks!
> 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)