Diego Ongaro
unread,Oct 4, 2013, 4:47:11 PM10/4/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to kjnilsson, xian...@coreos.com, raft...@googlegroups.com, Ben Johnson
> On Friday, October 4, 2013 1:53:41 AM UTC-7, kjnilsson wrote:
>>
>> How do those of you who have implemented raft gone about testing and
>> validating that the implementation is sound?
Xiang and Ben's responses both contain good ideas, and I don't think
there's any one way to do this. I've also mostly done unit testing on
LogCabin for now, but here's one easy idea that should get you a lot
of mileage: randomly drop messages either at the sender or at the
recipient. For example, if you had each server randomly drop around
10% of the messages it received, my guess is the "network" would
sometimes function well enough to make progress and confirm things are
still working, and it'd test a wide variety of edge cases. And there's
a few easy ways to expand this to cover more edge cases: vary the drop
percentage between servers, add random message delays, random server
restarts, etc.
-Diego