Majority Is Not Committed
A five-server Raft cluster. Entry 1:2 (index 1, term 2) is committed on all five. Then:
| phase | what happened | who holds index 2 |
|---|---|---|
| term 5 | S1 leads, appends 2:5, replicates to S2, then crashes |
S1, S2 |
| term 6 | S5 is elected with votes from S3, S4 and itself, appends 2:6 locally, crashes before replicating |
S1, S2 hold 2:5; S5 holds 2:6 |
| term 7 | S1 restarts, is elected, and successfully replicates 2:5 to S3 |
S1, S2, S3 hold 2:5 |
S1 is now leader in term 7 and entry 2:5 is stored on three of five servers. May S1 mark index 2 committed and apply it?
Sign in to answer questions and track your progress
Sign In