lni / dragonboat

A feature complete and high performance multi-group Raft library in Go.
Apache License 2.0
5.09k stars 542 forks source link

Can the function be modified so that deleted nodes can be added to the cluster again after RemoveData is called? #329

Closed xiatianqiuyu closed 1 year ago

xiatianqiuyu commented 1 year ago

Can the function be modified so that deleted nodes can be added to the cluster again after RemoveData is called?

lni commented 1 year ago

No.

Once data belong to that replica is deleted after calling RemoveData, you should never try to add that node back to the shard. In fact, extra feature should be added to detect such operation that can corrupt your shard.