goldknife6 / mit-6.824-2016 Goto Github PK
View Code? Open in Web Editor NEWMIT 6.824 2016
MIT 6.824 2016
假如ABC三个节点,A是leader!
突然间网络断了,AB可以通信,C自己单独出来了!
于是:
AB正常服务,C自己成为了“候选人”!
按照代码逻辑,C只能拿到自己的票,所以身份一直是候选人loop!C的term一直不停的增加!
然后若干时间,网络恢复了!恰好那时候C又发起了RequestVote。而这时候C的term都比AB大,
AB自动成为FOLLOWER!(这个应该是错误的!)
我上面描述的场景代码中有解决么?还是我看漏了?
Hi,
in line 59 of common_reduce.go, you can change it to
if err != nil && err == io.EOF
from
if err != nil {
err == io.EOF
can specify the error from decoder, which is EOF or other kind of errors.
run go test with -race
Hello, I'm doing the lab3 these days, while I find some warnings like Warning: client 0 managed to perform only 9 put operations in 1 sec?
.
I think it may be some wrong decisions in my server code. So do you encounter the same situation like this and how you solve it?
Thanks in advance.
Line 481 in raft.go
func (rf *Raft) InstallSnapshot(args InstallSnapshotArgs,reply *InstallSnapshotReply) {
...
rf.currentTerm = rf.currentTerm
I am wondering if you leave this to emphasize that we shan't keep our rf.currentTerm
up-to-date with args.Term
, cause Figure 13 does not mention that? Does it lead to some errors once happend?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.