Re: Reproducing exception in cassandra for testing failover scenarios

2016-09-24 Thread Edward Capriolo
You can also look at ccmbridge and farsandra.

Here is an example of bringing up an 8 node 3 datacenter cluster in a
single unit test using farsandra.

https://github.com/edwardcapriolo/ec/blob/master/src/test/java/Base/ThreeDcTest.java

On Sat, Sep 24, 2016 at 3:53 PM, Jonathan Haddad  wrote:

> Have you looked at Stubbed Cassandra, by Chris Batey?
> http://www.scassandra.org/
>
> On Sat, Sep 24, 2016 at 7:51 AM Bhuvan Rawal  wrote:
>
>> Hi,
>>
>> Is there a way to produce exceptions like NoHostAvailable, Timeout
>> exceptions , Not Enough replicas available, etc. locally so as to test the
>> failover code written at application level (paging state reinjection, or
>> retries).
>>
>> Thanks & Regards,
>> Bhuvan
>>
>


Re: Reproducing exception in cassandra for testing failover scenarios

2016-09-24 Thread Jonathan Haddad
Have you looked at Stubbed Cassandra, by Chris Batey?
http://www.scassandra.org/

On Sat, Sep 24, 2016 at 7:51 AM Bhuvan Rawal  wrote:

> Hi,
>
> Is there a way to produce exceptions like NoHostAvailable, Timeout
> exceptions , Not Enough replicas available, etc. locally so as to test the
> failover code written at application level (paging state reinjection, or
> retries).
>
> Thanks & Regards,
> Bhuvan
>