Test scenario implementation roadmap

オープン
#84 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust

調査の方向性

統合テストのチェックリストから、WAL bootstrap、leader election、log replication など、未チェックのシナリオを1つ選び、ロードマップ全体に取り組むのではなく、そのシナリオに集中してください。既存のテストエントリポイントと、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 ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lablup/raftify のほかの issue

lablup/raftify の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。