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

tracker: track in-flight commit index #171

Merged
merged 3 commits into from
Mar 7, 2024

Commits on Mar 7, 2024

  1. tracker: canonicalize Next in StateSnapshot

    When we send a snapshot, this is equivalent to sending all entries up to
    the snapshot's index. Correspondingly, we update the Next index to
    reflect this in-flight state.
    
    Signed-off-by: Pavel Kalinnikov <[email protected]>
    pav-kv committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    7929e3d View commit details
    Browse the repository at this point in the history
  2. tracker: track in-flight commit index

    This commit adds a Progress.pendingCommit field tracking the highest
    commit index <= Next-1 which the leader sent to the follower. It is used
    to distinguish cases when a commit index update needs or doesn't need to
    be sent to a follower.
    
    Signed-off-by: Pavel Kalinnikov <[email protected]>
    pav-kv committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    6e9aba7 View commit details
    Browse the repository at this point in the history
  3. tracker: use a simpler SentEntires method name

    Signed-off-by: Pavel Kalinnikov <[email protected]>
    pav-kv committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    0f9fe52 View commit details
    Browse the repository at this point in the history