Closed asad-awadia closed 10 months ago
It will be blocked until the snapshot finishes( returns from onSnasphotSave
). So you must carefully implement the onSnasphotSave
callback, capture the snapshot synchronously, and then save it into persistent storage asynchronously.
Your question
During
onSnapshotSave
jraft guarantees that there are no more writes going to the state machinebut what about jraft's own rocksdb? Is that also stopped? Are new write requests being written into the log and not being sent to the statemachine? Or is raft's own rocksdb also locked fully?
Environment
java -version
): 11uname -a
): linux