databendlabs / openraft

rust raft with improvements
Apache License 2.0
1.37k stars 154 forks source link

Feat: network failure simulation with `tests::fixture::RaftRouter` #478

Open ClSlaid opened 2 years ago

ClSlaid commented 2 years ago

Currently, tests::fixture::RaftRouter offers some useful test utilities for simulating and observing raft clusters. Its isolate_node(target) method could take down RPC requests sent to or from target, making the node isolated on the application layer.

But real-world network problems will not only occur on the application layer. For example, a switcher connecting to some of your nodes, which is on the link layer, may fail and left your nodes unreachable, making network connections to them fail. To simulate such situations, the Router should be enhanced.

github-actions[bot] commented 2 years ago

👋 Thanks for opening this issue!

Get help or engage by: