上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 24 下一页
摘要: 【遇到的问题】 1)os/signpost.h找不到 删除makefile文件里这段逻辑 2)编译失败 调试之后,发现缺失安装bison 【编译结果】 bash build.sh debug --init --make 阅读全文
posted @ 2023-01-01 15:02 stupidstan2019 阅读(57) 评论(0) 推荐(0)
摘要: 【参考文档】 https://open.oceanbase.com/quickStart bash -c "$(curl -s https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/download-center/opensource/oce 阅读全文
posted @ 2022-12-31 22:54 stupidstan2019 阅读(132) 评论(0) 推荐(0)
摘要: 【TestProgressLeader】 测试leader的progress.match 1)写5条消息 2)生成ready(模拟本地盘写) 3)advance(ready) leader的match变为6,next=7 【TestProgressResumeByHeartbeatResp】 测试心 阅读全文
posted @ 2022-12-23 23:21 stupidstan2019 阅读(26) 评论(0) 推荐(0)
摘要: 1)rawnode是raft模块的外层接口类 为什么需要rawNode这一层? 阅读全文
posted @ 2022-12-20 20:21 stupidstan2019 阅读(21) 评论(0) 推荐(0)
摘要: 1)发几个消息 2)调用advance(ready)触发commit 阅读全文
posted @ 2022-12-20 19:59 stupidstan2019 阅读(23) 评论(0) 推荐(0)
摘要: 1)TestProposal 阅读全文
posted @ 2022-12-18 11:33 stupidstan2019 阅读(17) 评论(0) 推荐(0)
摘要: 【用例TestCandidateResetTermMsgHeartbeat】 1)c.randomizedElectionTimeout=13 2)调用13次raft.tick() 3)tickElection里检测出pastElectionTimeout r.electionElapsed》= 1 阅读全文
posted @ 2022-12-18 10:53 stupidstan2019 阅读(27) 评论(0) 推荐(0)
摘要: 【参考】 https://www.jianshu.com/p/267e1d626c22 【主要逻辑】 MsgHup用于开启选举 【MsgApp】 https://pkg.go.dev/go.etcd.io/raft/v3#hdr-MessageType 'MsgApp' contains log e 阅读全文
posted @ 2022-12-18 10:41 stupidstan2019 阅读(135) 评论(0) 推荐(0)
摘要: 【流程】 1)第一轮1节点发起选举,自己的发送邮箱r.msgs包含两个消息,给2和3的 2)框架里取出这两条消息 3)通过消息的msgTo找到2节点的状态机,执行 【对象】 【逻辑】 【TestLeaderCycle】 阅读全文
posted @ 2022-12-18 10:12 stupidstan2019 阅读(66) 评论(0) 推荐(0)
摘要: 1)流程 2)变为leader调用栈 阅读全文
posted @ 2022-12-18 10:00 stupidstan2019 阅读(20) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 24 下一页