Suppose a 3-member raft cluster a[master],b,c
Client sends the log to a, a replicates it to b and c, a apply the log to the status machine and response to client. Then a crashes before b and c have a chance to replicate the committed state to b and c.
b replaces a as cluster leader. What will happen to the uncommitted log while the log has been responded to the client?
Will it be replicated by b again or just discarded?
Then suppose a 4-member raft cluster a[master],b,c,d
Client sends a log to a, a replicates it to b and c (not to d), a applies the log to the status machine and responds to client, then a crashes before replication of the committed state to b and c and d.
d replaces a to be the cluster leader. Then what will happen to the uncommitted log while the log has been responded to the client? will it be just discarded?