Description
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.
Attachments
Attachments
Issue Links
- links to