Closed longfar-ncy closed 7 months ago
要不要写个 go 单测啥的?还是说后面加一个统一的简单一致性测试?
Bot detected the issue body's language is not English, translate it automatically.
Do you want to write a go single test or something? Or should we add a unified simple consistency test later?
要不要写个 go 单测啥的?还是说后面加一个统一的简单一致性测试?
有道理,我这两天先试试加个最简单的,这样也方便其他人跑
Bot detected the issue body's language is not English, translate it automatically.
Do you want to write a go single test or something? Or should we add a unified simple consistency test later?
It makes sense. I will try to add the simplest one in the next two days, so that it will be easier for others to run.
要不要写个 go 单测啥的?还是说后面加一个统一的简单一致性测试?
go测试不好加,goredis库里没有raft相关命令。。。要是从外部启动、建立集群、然后再测的话,其实我感觉不如脚本方便
Bot detected the issue body's language is not English, translate it automatically.
Do you want to write a go single test or something? Or should we add a unified simple consistency test later?
Go testing is not easy to add. There are no raft-related commands in the goredis library. . . If you start it from the outside, build a cluster, and then test it, I actually feel it is not as convenient as a script.
要不要写个 go 单测啥的?还是说后面加一个统一的简单一致性测试?
go测试不好加,goredis库里没有raft相关命令。。。要是从外部启动、建立集群、然后再测的话,其实我感觉不如脚本方便
直接调用 Do 接口嘛
Bot detected the issue body's language is not English, translate it automatically.
Do you want to write a go single test or something? Or should we add a unified simple consistency test later?
Go testing is not easy to add. There are no raft-related commands in the goredis library. . . If you start it from the outside, establish a cluster, and then test it, I actually feel it is not as convenient as a script.
Just call the Do interface directly
完成 praft 添加 binlog 和on_apply解析binlog并写入的逻辑
可以在项目目录下 运行 consistency_test.sh 检验集群是否建立成功、数据是否能同步到 follower、以及向 follower 发送写请求的leader信息回复