-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support consistent read with log-id #805
Comments
👋 Thanks for opening this issue! Get help or engage by:
|
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One potential solution is to use the raft-log-id as a pseudo time. This solution involves:
i
to the writerW
when a log is applied.R
(whether it's the same asW
or not) forwardsi
to an Openraft node for reading, Openraft will not process this read request until it has appliedi
.Since the committed log id (
(term, index)
) in raft is monotonic, it can be used as a measure of time. However, this solution requires the application to track the log-id amount across a cluster.Originally posted by @drmingdrmer in #262 (comment)
The text was updated successfully, but these errors were encountered: