会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
stupidstan2019
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
24
下一页
2023年1月1日
最新编译方法
摘要: 【遇到的问题】 1)os/signpost.h找不到 删除makefile文件里这段逻辑 2)编译失败 调试之后,发现缺失安装bison 【编译结果】 bash build.sh debug --init --make
阅读全文
posted @ 2023-01-01 15:02 stupidstan2019
阅读(57)
评论(0)
推荐(0)
2022年12月31日
最新安装方法
摘要: 【参考文档】 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)
2022年12月23日
9) TestProgressLeader(raft_test.go:0-350)
摘要: 【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)
2022年12月20日
8)TestRawNodeStart
摘要: 1)rawnode是raft模块的外层接口类 为什么需要rawNode这一层?
阅读全文
posted @ 2022-12-20 20:21 stupidstan2019
阅读(21)
评论(0)
推荐(0)
7)TestSingleNodeCommit
摘要: 1)发几个消息 2)调用advance(ready)触发commit
阅读全文
posted @ 2022-12-20 19:59 stupidstan2019
阅读(23)
评论(0)
推荐(0)
2022年12月18日
6)选举和日志复制消息请求时序--TestProposal
摘要: 1)TestProposal
阅读全文
posted @ 2022-12-18 11:33 stupidstan2019
阅读(17)
评论(0)
推荐(0)
5)选举超时
摘要: 【用例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)
4)消息类型MsgHup及MsgApp
摘要: 【参考】 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)
3)如何测试多节点状态机及TestLeaderCycle
摘要: 【流程】 1)第一轮1节点发起选举,自己的发送邮箱r.msgs包含两个消息,给2和3的 2)框架里取出这两条消息 3)通过消息的msgTo找到2节点的状态机,执行 【对象】 【逻辑】 【TestLeaderCycle】
阅读全文
posted @ 2022-12-18 10:12 stupidstan2019
阅读(66)
评论(0)
推荐(0)
2)leader选举用例
摘要: 1)流程 2)变为leader调用栈
阅读全文
posted @ 2022-12-18 10:00 stupidstan2019
阅读(20)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
24
下一页
公告