Re: Running Cassandra in Integration Tests

2017-04-28 Thread kurt greaves
Use ccmlib. https://github.com/pcmanus/ccm On 28 April 2017 at 12:59, Matteo Moci wrote: > Sorry for bumping this old thread, but what would be your suggestion for > programmatically start/stop nodes in a cluster? > > I'd like to make some experiments and perform QUORUM writes

Re: Running Cassandra in Integration Tests

2017-04-28 Thread Matteo Moci
Sorry for bumping this old thread, but what would be your suggestion for programmatically start/stop nodes in a cluster? I'd like to make some experiments and perform QUORUM writes against a cluster (REPLICATION=3) with alternatively 2 or 3 nodes up, starting/stopping/restarting nodes in the

Re: Running Cassandra in Integration Tests

2016-10-07 Thread Eric Stevens
If you happen to be using Scala, we recently released some tooling we wrote around using CCM for integration testing: https://github.com/protectwise/cassandra-util You define clusters and nodes in configuration, then ask the service to go:

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Edward Capriolo
Checkout https://github.com/edwardcapriolo/farsandra. It falls under the realm of almost 100% pure java (besides the fact it uses some shell to launch Cassandra). On Thu, Oct 6, 2016 at 7:08 PM, Ali Akhtar wrote: > Is it possible to create an isolated cassandra instance

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Jonathan Haddad
3.9 falls under the Tick Tock release cycle, which is almost completely untested in production by experienced operators. In the cases where it has been tested, there have been numerous bugs found which I (and I think most people on this list) consider to be show stoppers. Additionally, the Tick

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Peddi, Praveen
g>> Date: Thursday, October 6, 2016 at 8:44 PM To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" <user@cassandra.apache.org<mailto:user@cassandra.apache.org>> Subject: Re: Running Cassandra in Integration Tests Peddi @ Amazon, would you be able to share yo

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Peddi, Praveen
aveen From: Ali Akhtar <ali.rac...@gmail.com<mailto:ali.rac...@gmail.com>> Reply-To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" <user@cassandra.apache.org<mailto:user@cassandra.apache.org>> Date: Thursday, October 6, 2016 at 8:35 PM To: "user@c

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Ali Akhtar
er@cassandra.apache.org" <user@cassandra.apache.org> >> Date: Thursday, October 6, 2016 at 8:44 PM >> >> To: "user@cassandra.apache.org" <user@cassandra.apache.org> >> Subject: Re: Running Cassandra in Integration Tests >> >> Peddi @ Am

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Ali Akhtar
> > Reply-To: "user@cassandra.apache.org" <user@cassandra.apache.org> > Date: Thursday, October 6, 2016 at 8:44 PM > > To: "user@cassandra.apache.org" <user@cassandra.apache.org> > Subject: Re: Running Cassandra in Integration Tests > > Peddi @

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Peddi, Praveen
t;" <user@cassandra.apache.org<mailto:user@cassandra.apache.org>> Date: Thursday, October 6, 2016 at 8:44 PM To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" <user@cassandra.apache.org<mailto:user@cassandra.apache.org>> Subject: Re: Runn

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Ali Akhtar
org> > Date: Thursday, October 6, 2016 at 8:35 PM > To: "user@cassandra.apache.org" <user@cassandra.apache.org> > Subject: Re: Running Cassandra in Integration Tests > > That looks great Andrew, but it doesn't seem to have been committed to for > 5 months. Is anyo

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Kant Kodali
embedded cassandra instance? you mean dont persist any data to disk? If so I dont see that being possible at this time. prior to running your test code you just run shell script and after test truncate everything and bring down the instance. one way or other this needs to happen underneath so I

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Peddi, Praveen
a.apache.org<mailto:user@cassandra.apache.org>> Subject: Re: Running Cassandra in Integration Tests That looks great Andrew, but it doesn't seem to have been committed to for 5 months. Is anyone still using cassandra-unit , does it work with latest cassandra versions (e.g 3.9)? On Fri,

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Ali Akhtar
That looks great Andrew, but it doesn't seem to have been committed to for 5 months. Is anyone still using cassandra-unit , does it work with latest cassandra versions (e.g 3.9)? On Fri, Oct 7, 2016 at 5:33 AM, Andrew Tolbert wrote: > Hi Ali, > > cassandra-unit

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Andrew Tolbert
Hi Ali, cassandra-unit might be what you are looking for. It allows you to run an embedded cassandra instance along side your tests and has some nice integration with JUnit. Thanks, Andy On Thu, Oct 6, 2016 at 7:13 PM Ali Akhtar

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Ali Akhtar
Ok, but that's not what this question is about. I'm looking for a way to run an embedded cassandra instance which is created & destroyed during tests and which doesn't persist any state outside the tests. On Fri, Oct 7, 2016 at 5:10 AM, Kant Kodali wrote: > you dont need to

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Ali Akhtar
Okay.. but how would I start this instance? Is there a java api to programmatically start / destroy an instance during tests? On Fri, Oct 7, 2016 at 4:56 AM, Kant Kodali wrote: > sure as long as that isolated instance is treated as separate cluster you > shouldn't run into

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Kant Kodali
sure as long as that isolated instance is treated as separate cluster you shouldn't run into any problems. On Thu, Oct 6, 2016 4:08 PM, Ali Akhtar ali.rac...@gmail.com wrote: Is it possible to create an isolated cassandra instance which is run during integration tests and it disappears