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

leader can not commit log which produce by other term #110

Open
2225377fjs opened this issue Oct 30, 2019 · 0 comments
Open

leader can not commit log which produce by other term #110

2225377fjs opened this issue Oct 30, 2019 · 0 comments

Comments

@2225377fjs
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant