Sample Header Ad - 728x90

Database Administrators

Q&A for database professionals who wish to improve their database skills

Latest Questions

0 votes
2 answers
87 views
Handling DriverTimeoutException in DataStax Java Driver 4.13.0 Without Retrying Non-Idempotent Requests
Using datastax-java-driver-core 4.13.0 to connect the Java application to Cassandra. When a Cassandra node goes down, all in-flight requests to that node fail with a DriverTimeoutException. This exception is not handled by DefaultRetryPolicy, meaning no automatic retry happens. The requests are non-...
Using datastax-java-driver-core 4.13.0 to connect the Java application to Cassandra. When a Cassandra node goes down, all in-flight requests to that node fail with a DriverTimeoutException. This exception is not handled by DefaultRetryPolicy, meaning no automatic retry happens. The requests are non-idempotent, so implementing a custom retry mechanism risks duplicate writes. **Questions:** How can we gracefully handle DriverTimeoutException without causing duplicate writes? Is there a recommended way to retry only safe operations in such scenarios while preventing data inconsistency? Are there any DataStax-recommended strategies to mitigate request failures when nodes go down? Any guidance or best practices would be greatly appreciated!
Ashwani Kumar (1 rep)
Feb 5, 2025, 12:50 PM • Last activity: Feb 6, 2025, 01:17 AM
0 votes
2 answers
81 views
LWT write shows as SERIAL CL
Using DataStax Java driver version 4.17.0 against Cassandra version 4.1.4, a LOCAL_QUORUM lightweight-transaction write to the same DC as a single-DC keyspace shows a Write-SERIAL rather than a Write-LOCAL_SERIAL statistic. Is this expected behavior? I haven't dug into whether the LWT is accessing r...
Using DataStax Java driver version 4.17.0 against Cassandra version 4.1.4, a LOCAL_QUORUM lightweight-transaction write to the same DC as a single-DC keyspace shows a Write-SERIAL rather than a Write-LOCAL_SERIAL statistic. Is this expected behavior? I haven't dug into whether the LWT is accessing remote DCs; this would be undesirable behavior. Should it?
tdhso (5 rep)
Aug 26, 2024, 01:15 PM • Last activity: Sep 5, 2024, 12:24 PM
Showing page 1 of 2 total questions