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

Make ReadIndex work safely #2469

Merged
merged 1 commit into from
Jul 3, 2018
Merged

Make ReadIndex work safely #2469

merged 1 commit into from
Jul 3, 2018

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Jul 3, 2018

Fix a long-standing bug, where we were overwriting raftpb.Message.Context, before sending it over the wire. The understanding we had was that Context field was unused by raft library, but that was not the case. Specifically, MsgReadIndex was being sent as part of HeartBeat using the Context field.

Changed the proto that we use for sending Raft message batches, so that it carries RaftContext directly, instead of making it part of the raftpb.Message.

Turned linearizable reads back on for Zero, and for retrieving state from Zero.
More context here: etcd-io/etcd#9893


This change is Reviewable

@manishrjain manishrjain merged commit 2e044e1 into master Jul 3, 2018
@manishrjain manishrjain deleted the mrjn/linread branch July 3, 2018 04:01
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
Fix a long-standing bug, where we were overwriting raftpb.Message.Context, before sending it over the wire. The understanding we had was that Context field was unused by raft library, but that was not the case. Specifically, MsgReadIndex was being sent as part of HeartBeat using the Context field.

Changed the proto that we use for sending Raft message batches, so that it carries RaftContext directly, instead of making it part of the raftpb.Message.

Turned linearizable reads back on for Zero, and for retrieving state from Zero.
More context here: etcd-io/etcd#9893
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