Fast Leader Election
Whenever the QuorumPeer changes its state to LOOKING, lookForLeader in FastLeaderElection is invoked to start a new round of leader election. The server with lastest zxid(if same then lasted sid) will be selected.
1 |
|
Synchronize data