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

etcdserver/raft.go: separate raft tick and ready #16847

Closed

Conversation

chaochn47
Copy link
Member

@chaochn47 chaochn47 commented Oct 29, 2023

Related to #15944.

etcd leader should not fail to send the heartbeat if disk is blocked.

This should be helpful to cancel watch streams when disk is stalled. Refer to #13527.

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

TODO:

  1. add verification that watch will be cancelled if disk is stalled after this patch (also with negative test case).
  2. evaluate if all the s.Leader() should be replaced with r.RaftStatus.Leader

@chaochn47
Copy link
Member Author

chaochn47 commented Oct 30, 2023

If there are any committed membership reconfig changes, heartbeat to drive election and votes has a dependency that those config updates must be applied first. Otherwise, there will be split votes.

So this PR is incorrect and a no-go option. See more in #7706

@chaochn47 chaochn47 closed this Oct 30, 2023
@chaochn47 chaochn47 deleted the separate-raft-tick-and-ready branch October 30, 2023 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant