关于mit:Mit6824lab2笔记
Lab2这个lab是要实现一个Raft一致性协定。lab地址:http://nil.csail.mit.edu/6.82...raft论文地址:http://nil.csail.mit.edu/6.82... 测试形式: $ cd src/raft$ go testTest (2A): initial election ...--- FAIL: TestInitialElection2A (5.09s) config.go:333: expected one leader, got noneTest (2A): election after network failure ...--- FAIL: TestReElection2A (4.99s) config.go:333: expected one leader, got noneTest (2B): basic agreement ...--- FAIL: TestBasicAgree2B (10.05s) config.go:478: one(100) failed to reach agreementTest (2B): RPC byte count ...--- FAIL: TestRPCBytes2B (10.05s) config.go:478: one(99) failed to reach agreementTest (2B): agreement despite follower disconnection ...--- FAIL: TestFailAgree2B (10.00s) config.go:478: one(101) failed to reach agreementTest (2B): no agreement if too many followers disconnect ...lab阐明: 通过在raft/raft.go中增加代码来实现Raft协定。在该文件中,您将找到框架代码,以及如何发送和接管rpc的示例。您的实现必须反对以下接口,测试和最终的kv服务器将应用该接口。您能够在raft.go的评论中找到更多细节。 ...