Skip to content
Discussion options

You must be logged in to vote

In the rocksstorage example the db WAL is flushed which I think would take a while, clashing with the documentation above. (I might be wrong, I'm new to Rust tbh).

the example is meant to provide a simple implementation of the RaftLogStorage and does not implement the two-phase append mentioned in the doc.

In a real world application, the append implementation does not need to flush_wal() before append() returns, flush_wal() can be delayed by putting it in a spawned task. And in this task, flush the WAL and call the callback.

I do not see anything like this in the rocksstorage example. If the flush operations are indeed synchronous, then this requirement might be met accidentally (if o…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by toth-istvan-zoltan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants