[
https://issues.apache.org/jira/browse/RATIS-1594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17562279#comment-17562279
]
Tsz-wo Sze commented on RATIS-1594:
-----------------------------------
The pull request is now merged. Thanks, [~liuyaolong]!
> Support ADD mode to SetConfiguration
> ------------------------------------
>
> Key: RATIS-1594
> URL: https://issues.apache.org/jira/browse/RATIS-1594
> Project: Ratis
> Issue Type: Sub-task
> Components: server
> Reporter: Yaolong Liu
> Assignee: Yaolong Liu
> Priority: Major
> Attachments: 658_review.patch
>
> Time Spent: 3h 50m
> Remaining Estimate: 0h
>
> Support ADD mode to setConfiguration: we only add members to the new member
> list that are temporarily not in the current list, and do not delete existing
> members.
> Suppose there are now three members A B C in the cluster,
> D called setConfiguration(newPeers=[A, B, C, D])
> E called setConfiguration(newPeers=[A, B, C, E])
> In the current code logic, the cluster members will end up being A, B, C, D
> or A, B, C, E.
> In ADD mode:
> We assume that E's request is executed successfully first, and the current
> members of the cluster are A, B, C, E, and then start to execute D's request.
> At this time, we find that D is not in the list, so we just add D instead of
> deleting E. The clusters eventually become A, B, C, D, E
> In addition, we can hand over to the user whether to use concurrent mode to
> execute setConfiguration.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)