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

add peek support #935

Open
web3creator opened this issue Nov 16, 2023 · 3 comments
Open

add peek support #935

web3creator opened this issue Nov 16, 2023 · 3 comments
Assignees

Comments

@web3creator
Copy link

web3creator commented Nov 16, 2023

Is your feature request related to a problem? Please describe.
add

// peek_with_async().await
pub async fn peek_with_async(&self)->result<(),error>;
// loop {sleep(internal)}
pub  fn peek(&self)->result<(),error>;

Describe the solution you'd like
Node and master node remain synchronized

Describe alternatives you've considered
The underlying framework determines whether the current node and the master node are synchronized with the master node at this moment.

Copy link

👋 Thanks for opening this issue!

Get help or engage by:

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

@drmingdrmer drmingdrmer self-assigned this Nov 18, 2023
@AdamLeyshon
Copy link

Isn't that what ensure_linearizable is for?

If I understand it right, this function ensures that the node is up to date with Raft logs?

@drmingdrmer
Copy link
Member

Isn't that what ensure_linearizable is for?

If I understand it right, this function ensures that the node is up to date with Raft logs?

Yes It looks like peek() is just forward ensure_linearizable to leader on the follower.

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

3 participants