Skip to content

fix: protect join req handling from term mismatch

Yaroslav Dynnikov requested to merge join-batch-term into master

One of the most tricky Raft cases is a so-called ABA problem [1]. In that case it's important to protect a batch of join requests with a term number. Since the whole batch is supplied with atomicity-sensitive uuids, applying it on a different term may cause an inconsistency, which is very, veeeery bad.

[1] https://en.wikipedia.org/wiki/ABA_problem

Merge request reports