Skip to content
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

Open
Tracked by #806
drmingdrmer opened this issue Apr 28, 2023 · 1 comment
Open
Tracked by #806

Support consistent read with log-id #805

drmingdrmer opened this issue Apr 28, 2023 · 1 comment

Comments

@drmingdrmer
Copy link
Member

One potential solution is to use the raft-log-id as a pseudo time. This solution involves:

  • Returning the log id i to the writer W when a log is applied.
  • A subsequent reader R (whether it's the same as W or not) forwards i to an Openraft node for reading, Openraft will not process this read request until it has applied i.

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)

@github-actions
Copy link

👋 Thanks for opening this issue!

Get help or engage by:

  • /help : to print help messages.
  • /assignme : to assign this issue to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant