We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
先叠个甲,是个go的初学者,如果有错误请轻喷 代码主要参考了作者的实现。 下图是在执行TestReElection2A时产生的日志,可见在disconnect第一个term的leader后,S1当选了Term2的leader,并发送了心跳。此时讲道理S2应该重置electionTime,但是S2在接受到心跳后仍然触发了ElectionTimeout事件。怀疑是在Reset前,就已经产生了electiontimeout,但就日志结果而言,接受心跳发生在electiontimeout前,理应被reset掉。
The text was updated successfully, but these errors were encountered:
不知道作者在实现LabA时候有遇到这个问题吗?
Sorry, something went wrong.
No branches or pull requests
先叠个甲,是个go的初学者,如果有错误请轻喷
代码主要参考了作者的实现。
下图是在执行TestReElection2A时产生的日志,可见在disconnect第一个term的leader后,S1当选了Term2的leader,并发送了心跳。此时讲道理S2应该重置electionTime,但是S2在接受到心跳后仍然触发了ElectionTimeout事件。怀疑是在Reset前,就已经产生了electiontimeout,但就日志结果而言,接受心跳发生在electiontimeout前,理应被reset掉。
The text was updated successfully, but these errors were encountered: