cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: network/message simulation framework?
Date Sat, 25 Jun 2011 13:44:36 GMT
On Fri, Jun 24, 2011 at 10:47 PM, Yang <teddyyyy123@gmail.com> wrote:
> Thanks Jonathan.
> this provides a way to essentially get a copy of the outgoing messages,
> the messages onto the real connections still go through, but I would need a
> way
> to shut off the real connections too.

Just return null from the sink to disappear the messages.

> but an even more difficult thing is that the ThriftSocket etc will need to
> open a java.net.Socket, which
> hooks onto the real IP address and port, in  a simulation environment, we'd
> need to
> mock out the java.net.Socket too, that sounds more difficult.

Yes, this won't help on the Thrift side.

-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Mime
View raw message