lni/dragonboat

Question about log persistence when follower receive AE

Closed this issue · 1 comments

When followers receive Replicate message, things work like this:

image

But raft thesis section 10.2.1 says, "The leader may even commit an entry before it has been written to its own disk, if a majority of followers have written it to their disks; this is still safe. "
image
I have some questions about this. Is it safe for the follower to reply that the copy was successful immediately after receiving the message and writing it to memory?

lni commented

@tt67wq for general question on raft, you may want to use the official raft mailing list, see link below. the author of raft is there so you can usually get more accurate & authoritative answers.

https://groups.google.com/forum/#!forum/raft-dev

for your question above, no, it is not safe to allow any follower to skip such persistent storage before acknowledging.