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

raft: leader respond to learner read index message #220

Merged
merged 4 commits into from
Apr 30, 2019
Merged

Conversation

nolouch
Copy link
Contributor

@nolouch nolouch commented Apr 18, 2019

In a cluster with 1 leader and 1 learner, read request in learner will get an empty read index.
pick from: etcd-io/etcd#10590

@CLAassistant
Copy link

CLAassistant commented Apr 18, 2019

CLA assistant check
All committers have signed the CLA.

@nolouch nolouch changed the title raft: leader reponnds to learner read index message raft: leader respond to learner read index message Apr 18, 2019
@nolouch nolouch requested review from hicqu and Hoverbear April 18, 2019 09:31
@siddontang
Copy link
Contributor

Great Catch, CI failed

Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
src/raft.rs Outdated Show resolved Hide resolved
tests/integration_cases/test_raft.rs Outdated Show resolved Hide resolved
tests/integration_cases/test_raft.rs Outdated Show resolved Hide resolved
src/raft.rs Outdated Show resolved Hide resolved
@nolouch
Copy link
Contributor Author

nolouch commented Apr 29, 2019

PTAL @Hoverbear @hicqu @ice1000

Copy link
Contributor

@ice1000 ice1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hoverbear Hoverbear added this to the 0.6.0 milestone Apr 29, 2019
@Hoverbear Hoverbear added the Bug Recognized misbehavior. label Apr 29, 2019
@hicqu
Copy link
Contributor

hicqu commented Apr 30, 2019

LGTM

@nolouch nolouch merged commit 0e6fe65 into master Apr 30, 2019
@nolouch nolouch deleted the fix-learner-index branch April 30, 2019 03:03
overvenus pushed a commit that referenced this pull request May 8, 2019
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
@overvenus overvenus mentioned this pull request May 8, 2019
@hicqu
Copy link
Contributor

hicqu commented May 8, 2019

LGTM

overvenus added a commit that referenced this pull request May 8, 2019
* raft: leader respond to learner read index message (#220)

Signed-off-by: nolouch <nolouch@gmail.com>

* Bump to v0.4.3

Signed-off-by: Neil Shen <overvenus@gmail.com>
hicqu pushed a commit to hicqu/raft-rs that referenced this pull request Jul 17, 2019
* raft: leader respond to learner read index message (tikv#220)

Signed-off-by: nolouch <nolouch@gmail.com>

* Bump to v0.4.3

Signed-off-by: Neil Shen <overvenus@gmail.com>
Hoverbear pushed a commit that referenced this pull request Jul 19, 2019
* Check pending conf change before campaign (#225)

Fix #221.

* Add more convenient lite-weight interfaces (#227)

This PR introduces two simple and lite weight interfaces:
- ping to trigger heartbeats without ticking,
- status_ref to borrow the progress set instead of cloning.

* *: bump to 0.4.2 (#228)

* Bump to v0.4.3 (#231)

* raft: leader respond to learner read index message (#220)

Signed-off-by: nolouch <nolouch@gmail.com>

* Bump to v0.4.3

Signed-off-by: Neil Shen <overvenus@gmail.com>

* Request snapshot (#243)

Signed-off-by: Neil Shen <overvenus@gmail.com>

* fix tests

* cargo fmt

* address comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Recognized misbehavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants