This conversation seems to be premised on the idea that a leader transfers its leadership directly to another node, and that new node is immediately promoted and maintains the same term as the old leader. AIUI the dissertation does not describe it that way. The leader transferring its leadership sends all its entries to another node *and then times out that node* to immediately start a new election that node will win. By timing out the node to which leadership is being transferred, that will cause the new leader to increment its term, thus solving the duplicate terms issue. Additionally, considering that it increments its term and runs an election to get elected leader, it simply won't get elected if it's partitioned. Most likely, another node will timeout and start an election as well, and the node to which the leader intended to transfer leadership may not win.
> On Dec 15, 2017, at 12:13 AM, Юрий Соколов <
funny....@gmail.com> wrote:
>
> But Jin talks about leader transfership from old leader (that occurs in minority due to temporal network split) that happens concurrently with leader election in majority.
>
> --
> You received this message because you are subscribed to the Google Groups "raft-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
raft-dev+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.