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: don't block heartbeat response when fsm is busy #969

Merged
merged 4 commits into from
Apr 17, 2023

Conversation

killme2008
Copy link
Contributor

Motivation:

Don't block processing heartbeat requests when FSM is busy.

Modification:

When FSM is busy, then don't update the lastCommitIndex at that time. It's fine because the heartbeat requests and append entries requests will keep attaching the latest commit index.

Result:

Fixes #845 #830

Copy link
Contributor

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

lgtm

…rviceImpl.java

Co-authored-by: JeremyHi <jiachun_fjc@163.com>
Copy link
Contributor

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

lgtm

@fengjiachun fengjiachun merged commit 9787367 into master Apr 17, 2023
@fengjiachun fengjiachun deleted the feature/fix-heartbeat-blocking branch April 17, 2023 03:38
@LinHuiG
Copy link

LinHuiG commented May 25, 2023

这个修复会在下一个稳定版本1.3.14发布吗,1.3.14有计划什么时候发布吗

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

Successfully merging this pull request may close these issues.

压力情况下出现领导者迁移
3 participants