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

testdata: add a lagging commit test #137

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Commits on Jan 25, 2024

  1. testdata: add a lagging commit test

    This commit adds a test demonstrating the effect of delayed commit on a
    follower node after a network hiccup between the leader and this
    follower.
    
    In the described scenario, after the moment of committing an entry on
    the leader, it takes HeartbeatInterval + 3/2 * RTT until the follower
    learns this entry is committed.
    
    This is suboptimal, and could take HeartbeatInverval + 1/2 * RTT if the
    leader didn't cut the commit index at Progress.Match before sending it
    to the follower.
    
    Signed-off-by: Pavel Kalinnikov <[email protected]>
    pav-kv committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    8a26275 View commit details
    Browse the repository at this point in the history