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: remove MsgApp flow control management dependence on heartbeats #130532

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iskettaneh
Copy link
Contributor

@iskettaneh iskettaneh commented Sep 11, 2024

This commit does the following:

Instead of unpausing the follower and maybe sending a MsgApp when receiving a heartbeat response, it does the same thing but on heartbeat timeout if the follower is supporting the leader. Otherwise, it sends MsgFortifyLeader to the follower who is not supporting the leader.

This change is guarded by SupportFromEnabled(). If it flips to true, it will stop depending on heartbeat responses. If it flips to false, it will start depending on heartbeat responses again.

NOTE: future PRs will stop heartbeats all together if storeliveness is enabled.

Fixes: #130493

Epic: None

Release note: None

Copy link

blathers-crl bot commented Sep 11, 2024

Your pull request contains more than 1000 changes. It is strongly encouraged to split big PRs into smaller chunks.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@iskettaneh iskettaneh force-pushed the RaftProbePaused branch 2 times, most recently from cb77779 to cd5495d Compare September 12, 2024 15:46
@iskettaneh iskettaneh changed the title raft: resume probe at heartbeat intervals raft: remove MsgApp flow control management dependence on heartbeats Sep 12, 2024
@iskettaneh iskettaneh marked this pull request as ready for review September 12, 2024 16:24
@iskettaneh iskettaneh requested a review from a team as a code owner September 12, 2024 16:24
@iskettaneh iskettaneh marked this pull request as draft September 13, 2024 00:21
@iskettaneh iskettaneh force-pushed the RaftProbePaused branch 2 times, most recently from 4b5843e to ded0b3f Compare September 27, 2024 21:46
This commit does the following:

Instead of unpausing the follower and maybe sending a MsgApp when
receiving a heartbeat response, it does the same thing but on heartbeat
timeout if the follower is supporting the leader.

Fixes: cockroachdb#130493

Release note: None
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.

raft: remove MsgApp flow control management dependence on heartbeat
2 participants