Test scenario implementation roadmap
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- rust
- Domain
- distributed-systems, testing
Research direction
Choose one unchecked scenario from the integration-test checklist, such as WAL bootstrap, leader election, or log replication, rather than tackling the whole roadmap. Review the existing test entry points and the relevant RaftNode or HeedStorage area; for shell coverage, inspect the proposed test-cluster.sh scope. Done means the selected case is implemented and its expected pass or failure behavior is recorded.
Written by the indexing model from the issue text.
Description
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
PeerNotFounderror. - A configuration change request containing only an AddNode entry for itself times out.
Unit tests
Types that require unit tests
-
RaftNode -
HeedStorage(fromraft-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.
- Dominant language
- Rust
- Stars
- 44
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lablup/raftify
-
integration-test
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
dx
Difficulty 5/5 Over a week Newbie friendliness 32/100
-
feature log-storage snapshot
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
good first issue log-storage test
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
feature
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Similar issues
-
area:ui effort:medium enhancement P7 source:agent
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
documentation priority: low tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
nledford/Ladderback#1823 ·
Maintainers usually reply within 1 day
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)Possibly taken @ealwanlee claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
psmux/psmux-plugins#47 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
Maintainers usually reply within 1 day