raft icon indicating copy to clipboard operation
raft copied to clipboard

potential race condition in removing/adding same node?

Open skygragon opened this issue 4 years ago • 0 comments

say we remove node the add it back as non-voting, seems there would be race condition to cause a crash?

  1. append log "remove node A"
  2. append log "add non-voting node A" => new node memory
  3. later apply log "remove node A" => free node memory
  4. apply log "add non-voting node A" => update node memory (oops!)

skygragon avatar Nov 17 '21 12:11 skygragon