little-raft icon indicating copy to clipboard operation
little-raft copied to clipboard

Simulate network delay in tests

Open penberg opened this issue 3 years ago • 3 comments

Pull request #18 fixes an issue with out-of-order or stray AppendEntries rejects, which is only trigger able when Little Raft is wired up with networked servers.

Let's improve the tests to simulate network delay and partitioning to attempt to catch bugs like these.

penberg avatar Nov 20 '21 08:11 penberg

One way to do this is to use Maelstrom for testing: https://github.com/jepsen-io/maelstrom.

penberg avatar Dec 18 '21 06:12 penberg

Help definitely wanted on this one. Do you have any tests from ChiselStore that we can reuse @penberg?

andreev-io avatar Dec 18 '21 09:12 andreev-io

@andreev-io No tests to share. All the issues I discovered so far were result of manual testing and ChiselStore is still at early stages. I think first step is to improve Little Raft tests.

penberg avatar Dec 20 '21 11:12 penberg