Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

Shalini Ramachandra avatar image
Shalini Ramachandra asked ·

Are there tools to simulate failures to trigger the Java driver retry policies?

Using Java Datastax Driver 3.x

We are planning to implement a customer retry policy and provide it when the Cluster is being configured i.e. #withRetryPolicy. Are there any tools / libs that we can use to test this by simulating the Cassandra failures?

java driver
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

The quick answer is no, there aren't.

Read and write timeouts are generally a result of the cluster being overloaded and replicas not able to respond to the coordinator within the timeout window. The only way to simulate your cluster being overloaded is by overloading it. :)

Or with onRequestAborted, it is triggered by network interruptions or outages so you can only trigger by simulating infrastructure outages. Cheers!

2 comments Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Sure, thanks @Erick Ramirez

0 Likes 0 · ·

Not a problem. Cheers!

0 Likes 0 · ·