talent-plan/tinykv

Clarification of the content in project3b

xhnhill opened this issue · 1 comments

In the documentation of project3b, "Implement conf change in raftstore " part
There is a sentence: It will be used to guarantee the latest region information under network isolation that two leaders in one Region.
It is confusing what kind of features it guarantees. Does it mean something could keep the latest region information?

Under network isolation, there may be two raft leader simultaneously (though different term). Both leaders would report region heartbeat to scheduler, then scheduler can relay on epoch to decide which one is the latest. Feel free to file a PR to elaborate the doc.