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: > H

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 > failove

Re: How to query '%' character using LIKE operator in Cassandra 3.7?

2016-09-24 Thread DuyHai Doan
Reminder, right now, the % character is only interpreted as wildcard IF AND ONLY IF it is the first/last character of the searched term LIKE '%escape' --> ENDS WITH 'escape' If we use % to escape %, LIKE '%%escape' --> EQUALS TO '%escape' LIKE '%%%escape' --> EQUALS TO '%%escape' ??? On Fr

Reproducing exception in cassandra for testing failover scenarios

2016-09-24 Thread Bhuvan Rawal
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