Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test raft cluster by python #393

Open
happy-v587 opened this issue Jul 29, 2024 · 1 comment
Open

test raft cluster by python #393

happy-v587 opened this issue Jul 29, 2024 · 1 comment
Labels
✏️ Feature New feature or request

Comments

@happy-v587
Copy link
Contributor

happy-v587 commented Jul 29, 2024

Which PikiwiDB functionalities are relevant/related to the feature request?

raft

Description

基于规则的方式,编写raft cluster测试case。比如

  • set 一些 key,然后做了raft log compact、add node、kill leader,最后 get key验证数据是否正确
  • 多节点运行,将其中一个节点ctrl + z,然后写大量数据,然后取消ctrl + z,验证数据是否正确
  • 批量 add 很多 node,然后 set/get key 看看结果是否符合预期

Proposed solution

详细可见:#273 (comment)

Alternatives considered

使用go、shell也都可以。主要是实现类似的测试case

@happy-v587 happy-v587 added the ✏️ Feature New feature or request label Jul 29, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Test: raft cluster supports python script testing

@happy-v587 happy-v587 changed the title 测试:raft cluster 支持 python 脚本测试 test:raft cluster Jul 29, 2024
@happy-v587 happy-v587 changed the title test:raft cluster test:raft cluster by python Jul 29, 2024
@happy-v587 happy-v587 changed the title test:raft cluster by python test raft cluster by python Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✏️ Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants