PySyncObj icon indicating copy to clipboard operation
PySyncObj copied to clipboard

leader can not commit log which produce by other term

Open 2225377fjs opened this issue 5 years ago • 0 comments

while self.__raftCommitIndex < self.__getCurrentLogIndex(): nextCommitIndex = self.__raftCommitIndex + 1 count = 1 for node in self.__otherNodes: if self.__raftMatchIndex[node] >= nextCommitIndex: count += 1 if count > (len(self.__otherNodes) + 1) / 2: self.__raftCommitIndex = nextCommitIndex else: break

this not fullfill

2225377fjs avatar Oct 30 '19 08:10 2225377fjs