[x] It was noted that pub fn count_match_indexes(&self, index: LogIndex) -> usize looks suspicious. Was changed to reflect that the leader always has a match index. Fixed 2 node cluster.
[x] self.advance_commit_index() only gets called when an append entries response is recieved, which obviously won't happen in a 1 node cluster.
It was noted while playing with the register example (in #67) that proposals seem to fail with cluster sizes under 3.
With 3:
With 2:
And one:
On the one case, here is the output of the server:
Checked:
pub fn count_match_indexes(&self, index: LogIndex) -> usize
looks suspicious. Was changed to reflect that the leader always has a match index. Fixed 2 node cluster.self.advance_commit_index()
only gets called when an append entries response is recieved, which obviously won't happen in a 1 node cluster.