Closed meteam2022 closed 1 year ago
Hi @zhebrak,
I would like to apologize for my oversight in this pull request. After careful review, I realized that the changes I proposed here unintentionally addressed a different bug, while leaving the originally linked issue (#26) unresolved. I sincerely apologize for any confusion caused.
The root cause of the issue addressed in this pull request is as follows:
Due to the requirements of the Raft protocol, it is not allowed to commit a log entry that does not belong to the current term. In the code implementation, there is a loop used to update the commit index, which iterates sequentially. However, the loop breaks when encountering an index that does not belong to the current term. As a result, subsequent indices belonging to the current term and eligible for commit are not being checked, causing the commit index to remain stagnant.
Scenario:
Since the pull request has been merged, there is no need for any further actions on it. I apologize for any confusion caused.
Best regards
This pull request addresses the issue described in #26
close #26