incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <>
Subject Re: network/message simulation framework?
Date Sat, 25 Jun 2011 03:23:02 GMT
The MessageSink code is designed for this.  Look in MessagingService.sendOneWay.

On Fri, Jun 24, 2011 at 9:58 PM, Yang <> wrote:
> I'd like to verify the behavior of Cassandra under some edge case message
> loss scenarios.
> it's rather difficult to reproduce such things, cuz you have to setup
> multiple servers, and on each box essentially control
> the message "gates" to any other nodes in the network. the realistic way
> that I can think of is to close off all traffic and only manually
> allow certain messages to pass through. (in the case of Cassandra, we need
> to let through all gossip messages, and manually control
> replication messages )
> are there some existing simulation frameworks around?  junit + various mock
> frameworks look like a good fit, but
> in reality is not enough to simulate complex network code, for example, it's
> basically impossible to setup a simulated
> N-node cluster on only one test box.
> Thanks
> Yang

Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support

View raw message