algorithm - how does raft deal with log in this senario? -


enter image description here

assume d elected leader in above picture, how deal log index 11 , 12. in opinion, should delete 2 logs, don't find clues in raft paper how deal logs above senario.

if (d) elected leader, replicate log followers, won't remove items @ index 11 & 12. see section 5.3 on log replication in raft paper says

in raft, leader handles inconsistencies forcing followers’ logs duplicate own. means conflicting entries in follower logs overwritten entries leader’s log.

the rules around leader election ensure safe decision make.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -