Skip to content

Consider production ready for timestamp oracle? #1161

Answered by drmingdrmer
danthegoodman1 asked this question in Q&A
Discussion options

You must be logged in to vote

Openraft provides a very basic RaftLogStorage implementation test to ensure the implementation works as expected.
https://github.com/datafuselabs/openraft/blob/3ae6b4bfe2d13e633e437373f6c1b716b167bfa3/stores/memstore/src/test.rs#L21-L24

But internal the implementation it can not be tested. An real world production should be very careful with the storage.
The doc of the RaftLogStorage explained the requirement the application must achieve.

For example, it is crucial that the storage system does not re-order any IO operations: if save_vote() is called before append(), then save_vote() must be flushed to disk first before append(). Otherwise, the consensus cannot be guaranteed.

An obvious mi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@danthegoodman1
Comment options

@drmingdrmer
Comment options

Answer selected by danthegoodman1
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