x=2
x=5
to leader node N1, and N1 replicate x=5
to node N6 and N7(uncommitted), but N2~N5 didn't receive this RPCat this moment, N1 crashed, so, a new election triggered, my question is bellow:
x=5
(uncommitted will become committed)x=2
(uncommitted in N6/N7 will be discard)Did I misunderstand something? Thanks!
Yes, you are correct, depending on who becomes leader the inflight uncommitted entries may get committed, or may get dropped.