Open kishansagathiya opened 5 years ago
In the case of CRDT consensus, I would expect that ctl peers rm
would remove that peer from my trusted peerset and making sure to reallocate any pins that they have.
Hmm this is rough edge, particularly if a follower runs peer rm and triggers repinnings only meaninful to itself. I need some time to think an approach.
Additional information:
Describe the bug:
For CRDT consensus,
consensus.RmPeer
method is a no-op, soctl peers rm
and respective API should be a no-op as well, but it is not.In cluster method
PeerRemove
, we assume that peer will be removed and re-allocate all its CIDs to other peers https://github.com/ipfs/ipfs-cluster/blob/b96c2b664d907a1133381d0358b7960dcca0027a/cluster.go#L812-L820cluster.PeerRemove
should not have this side-effect and should be no-op in case of CRDT consensus.