Skip to content

RATIS-1562. Avoid sending install snapshot notifications and heartbets every round trip - #1690

Open
Elia-Renzoni wants to merge 1 commit into
apache:masterfrom
Elia-Renzoni:snaphost-progression
Open

Elia-Renzoni wants to merge 1 commit into
apache:masterfrom
Elia-Renzoni:snaphost-progression

Conversation

@Elia-Renzoni

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Before this PR, when installSnapshotEnabled=false, the leader sent progress notifications and heartbeats too often, which meant far more RPCs than needed. With this PR, once a follower is installing a snapshot and replies IN_PROGRESS, both progress notifications and heartbeats are throttled, so the leader sends at most one per heartbeat interval.

What is the link to the Apache JIRA

https://issues.apache.org/jira/projects/RATIS/issues/RATIS-1562?filter=allopenissues

How was this patch tested?

unit test

…ts every round trip

Signed-off-by: Elia Renzoni <elia.renzoni03@gmail.com>

This branch has not been deployed

No deployments
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.

1 participant