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

(fix) Forgot to check learner replicator. #385

Merged
merged 2 commits into from
Dec 30, 2019

Conversation

killme2008
Copy link
Contributor

Motivation:

If the learner node is not started when a new leader is elected, then the replicator to this learner will not be created, so the new logs will not be replicated to this learner even when it is started in future.

Modification:

We should check learner replicator state in stepdown timeout handler, just like checking the follower replicator in checkDeadNodes0.

@fengjiachun fengjiachun merged commit b0378d6 into master Dec 30, 2019
@fengjiachun fengjiachun deleted the feature/fix-learner-replicator branch December 30, 2019 13:26
fengjiachun pushed a commit that referenced this pull request Jan 1, 2020
* (fix) Forgot to check learner replicator.

* (feat) Only print log when targetPriority value was changed
@fengjiachun fengjiachun mentioned this pull request Apr 17, 2020
12 tasks
zongtanghu pushed a commit that referenced this pull request Apr 28, 2020
* (fix) Forgot to check learner replicator.

* (feat) Only print log when targetPriority value was changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla:yes size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants