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 against a > cluste

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 middl

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: https://github.com/protectwise/cassandra-util/blob/master/

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 which is run > during int

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 T

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Peddi, Praveen
Akhtar mailto:ali.rac...@gmail.com>> Reply-To: "user@cassandra.apache.org<mailto: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>&quo

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Peddi, Praveen
ra.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>" mailto:user@cassandra.apache.org>> Subject: Re: Running Cassandra in Integration Tests Peddi @ Amazon

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Ali Akhtar
gt;> cassandraDaemon.init(null); >> cassandraDaemon.start(); >> >> //stop cassandra after tests are done >> cassandraDaemon.stop(); >> >> From: Ali Akhtar >> Reply-To: "user@cassandra.apache.org" >> Date: Thursday, October 6, 2016 at 8:44

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Ali Akhtar
.apache.org" > Date: Thursday, October 6, 2016 at 8:44 PM > > To: "user@cassandra.apache.org" > Subject: Re: Running Cassandra in Integration Tests > > Peddi @ Amazon, would you be able to share your code such as in a gist, if > possible, please? > > Also, which ve

Re: Running Cassandra in Integration Tests

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

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Ali Akhtar
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, O

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 don

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Peddi, Praveen
.apache.org<mailto:user@cassandra.apache.org>" mailto:user@cassandra.apache.org>> Date: Thursday, October 6, 2016 at 8:35 PM To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" mailto:user@cassandra.apache.org>> Subject: Re: Running Cassandra in Integrat

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 wrote: > Ok, but t

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 look for cassandra

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Kant Kodali
you dont need to look for cassandra java api to start/stop instance. you just need to write a shell script or python or java or any language to execute shell commands! On Thu, Oct 6, 2016 4:57 PM, Ali Akhtar ali.rac...@gmail.com wrote: Okay.. but how would I start this instance? Is there a j

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 any problems. > > > >

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 after

Running Cassandra in Integration Tests

2016-10-06 Thread Ali Akhtar
Is it possible to create an isolated cassandra instance which is run during integration tests and it disappears after tests have finished running? Then its recreated the next time tests run (perhaps being populated with test data). I'm using Java.