The first request sent should be commitIndex: 0 prevIndex : 0 prevTerm : 0
A generic representatino of a raft node -- simply something which can respond to RaftRequest messages
TODO - add our latest commit (applied) index
TODO - add our latest commit (applied) index
our latest log index
Provides a means to keep track of all the 'append entries' responses received for a given end-user (client) request.
Provides a means to keep track of all the 'append entries' responses received for a given end-user (client) request. The 'result' can be used to finally reply to the user request as it completes when a quorum of results confirms (or denies) the success of the update
The first request sent should be commitIndex: 0 prevIndex : 0 prevTerm : 0
(to which the initial response would be) matchIndex: 1 // the most recent uncommitted index
The next request would be:
commmitIndex : 1 prevIndex : 1 // the recipient's match index prevTerm : 2 // the first term which has a leader
our (the leader's) term
our (the leader's) id
the index this commit is for.
the last known (or assumed) index as we know it. If the receiver replies w/ a non-success response, this index is decremented and retried
the term of the log index
the entry to append ... which are only non-empty if a previous AppendEntries request came back successfully