Hello,
I have a question about internal raft snapshots logic on the worker node.
I can see that:
- Save hard state and snapshot to WAL log (dgraph/draft.go at 146fb535f3d794f3f9ad25ac21fe640b875263f6 · dgraph-io/dgraph · GitHub)
- Then you try to sync using
retrieveSnapshot
function (dgraph/draft.go at 146fb535f3d794f3f9ad25ac21fe640b875263f6 · dgraph-io/dgraph · GitHub)
My question is what if node crashes during 2 step. So metadata saved, but database is out of sync with raft metadata.