Test scenario implementation roadmap

未关闭
#84 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
rust

调研方向

从集成测试检查清单中选择一个尚未勾选的场景,例如 WAL bootstrap、leader election 或 log replication,而不是着手处理整个路线图。检查现有的测试入口点以及 RaftNode 或 HeedStorage 中相关的区域;对于 shell 覆盖范围,检查提议的 test-cluster.sh 范围。完成的标准是:所选案例已实现,并且其预期的通过或失败行为已记录下来。

由索引模型根据 Issue 内容生成。

描述

integration-test test

One of the goals of this crate is to provide a robust, high-level Raft implementation that is ready to use.
To achieve this goal, we need to write more tests for various scenarios.

Integration tests

Should pass

  • Cluster bootstrap testing
    • Boostrapping based on node's static rule
    • WAL bootstrap
    • WAL snapshot bootstrap
  • Vote and Leader election
  • Request rerouting
  • Log replication
  • Log compaction
  • Simple membership change
  • Membership change based on Joint consensus

Should fail

Writing a list of failing test cases would be useful because it helps identify which failures are expected behavior and which are bugs.

  • Timeout on put requests when a quorum is broken.
  • Timeout on new node join attempts when a quorum is broken.
  • Handling put requests during leader failover.
  • Timeout on join requests during leader failover.
  • Failures occurring while creating a snapshot.
  • Whether a new proposal is rejected when there is a pending configuration change, and if it is processed normally after the pending configuration change is resolved.
  • If a node not in the peers sends a message to the cluster, it should raise a PeerNotFound error.
  • A configuration change request containing only an AddNode entry for itself times out.

Unit tests

Types that require unit tests

  • RaftNode
  • HeedStorage (from raft-rs)

Others

  • Doc testing
  • Client API testing
  • Create a simple shell script (test-cluster.sh) that verifies if the cluster is functioning correctly for each example.
主要语言
Rust
星标
44
派生
14
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

lablup/raftify 的其他 Issue

查看 lablup/raftify 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。