OpenAtomFoundation / pikiwidb

a high-performance, large-capacity, multi-tenant, data-persistent, strong data consistency based on raft, Redis-compatible elastic KV data storage system based on RocksDB
BSD 3-Clause "New" or "Revised" License
201 stars 63 forks source link

feat: hset/hdel wrote by braft and binlog #213

Closed longfar-ncy closed 7 months ago

longfar-ncy commented 7 months ago

完成 praft 添加 binlog 和on_apply解析binlog并写入的逻辑

可以在项目目录下 运行 consistency_test.sh 检验集群是否建立成功、数据是否能同步到 follower、以及向 follower 发送写请求的leader信息回复

KKorpse commented 7 months ago

要不要写个 go 单测啥的?还是说后面加一个统一的简单一致性测试?

Issues-translate-bot commented 7 months ago

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?

longfar-ncy commented 7 months ago

要不要写个 go 单测啥的?还是说后面加一个统一的简单一致性测试?

有道理,我这两天先试试加个最简单的,这样也方便其他人跑

Issues-translate-bot commented 7 months ago

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.

longfar-ncy commented 7 months ago

要不要写个 go 单测啥的?还是说后面加一个统一的简单一致性测试?

go测试不好加,goredis库里没有raft相关命令。。。要是从外部启动、建立集群、然后再测的话,其实我感觉不如脚本方便

Issues-translate-bot commented 7 months ago

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.

AlexStocks commented 7 months ago

要不要写个 go 单测啥的?还是说后面加一个统一的简单一致性测试?

go测试不好加,goredis库里没有raft相关命令。。。要是从外部启动、建立集群、然后再测的话,其实我感觉不如脚本方便

直接调用 Do 接口嘛

Issues-translate-bot commented 7 months ago

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