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

Add extensive tests with node failures, packet loss, and leader reelection #12

Open
andreev-io opened this issue Aug 18, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@andreev-io
Copy link
Owner

andreev-io commented Aug 18, 2021

Tests in this project serve two goals: testing functionality and offering usage examples. There's a lot of meaningful work that can be done by adding good tests to Little Raft.

Specifically, you'll want to test Little Raft functionality when replicas go down and up, when messages get lost on the network, and leaders get reelected. You might find it challenging to simulate nodes going up or down or getting connected and disconnected, but remember that in the tests the developer has control over how messages are passing between nodes -- emulating a disconnected node is as simple as not delivering any messages to it; simulating packet loss is as simple as dropping some packets randomly.

You could also add integration tests where replicas are actual separate processes communicating over the network. The possibilities are endless.

@andreev-io andreev-io added documentation Improvements or additions to documentation good first issue Good for newcomers labels Aug 21, 2021
@andreev-io andreev-io changed the title Add proper tests with node failures, packet loss, and cluster changes Add extensive tests with node failures, packet loss, and leader reelection Aug 21, 2021
@andreev-io andreev-io added this to the Production grade milestone Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant