Re: 'Tearing down' a test database

2010-03-24 Thread Ran Tavory
actually in 0.6.0 I committed this to trunk: http://svn.apache.org/repos/asf/cassandra/trunk/contrib/javautils/src/main/java/org/apache/cassandra/contrib/utils/service/CassandraServiceDataCleaner.java So it's quite similar to what I you have in hector. A few words of warning though: - this wipes o

Re: 'Tearing down' a test database

2010-03-24 Thread Nathan McCall
Take a look at EmbeddedServerHelper in the hector client for an example of how this is managed through a test case: http://github.com/rantav/hector/blob/master/src/test/java/me/prettyprint/cassandra/testutils/EmbeddedServerHelper.java -Nate On Wed, Mar 24, 2010 at 5:10 AM, Philip Jackson wrote:

Re: 'Tearing down' a test database

2010-03-24 Thread Jonathan Ellis
The 2nd insert needs to have a timestamp higher than the remove. On Wed, Mar 24, 2010 at 7:10 AM, Philip Jackson wrote: > Hi, > > Just trying out Cassandra (0.5), looks great so far but I've got a > question about removing data: > > For my test suite I would like to be able to build-up data in th

'Tearing down' a test database

2010-03-24 Thread Philip Jackson
Hi, Just trying out Cassandra (0.5), looks great so far but I've got a question about removing data: For my test suite I would like to be able to build-up data in the database and then have the test framework tear it all back down again. Trouble is, if I do a batch_insert, remove, batch_insert (o