I am upgrading to Spring boot version 2.3.1.Release. So, there is a major change in Spring Data Cassandra due to Java driver version upgrade to v4. I am stuck on application startup because there is a DriverTimeout exception being thrown: com.datastax.oss.driver.api.core.DriverTimeoutException: [s0|control|id: 0x8572a9d7, L:/My_IPv4:Random_Port - R:/Cassandra_Server:Port] Protocol initialization request, step 1 (OPTIONS): timed out after 500 ms
, but to no avail and same exception is being thrown. My current Spring boot version is 2.2.0.Release and I am not even specifying any timeout there and its working fine
I don't think there's anything we can do from a Spring Data side as your code interacts with the Cassandra driver directly. Please check StackOverflow or the Driver Jira at https://datastax-oss.atlassian.net/projects/JAVA/issues for further guidance
spring-projects-issues commentedAug 12, 2020
Akhilesh Kumar opened DATACASS-796 and commented
I am upgrading to Spring boot version 2.3.1.Release. So, there is a major change in Spring Data Cassandra due to Java driver version upgrade to v4. I am stuck on application startup because there is a DriverTimeout exception being thrown:
com.datastax.oss.driver.api.core.DriverTimeoutException: [s0|control|id: 0x8572a9d7, L:/My_IPv4:Random_Port - R:/Cassandra_Server:Port] Protocol initialization request, step 1 (OPTIONS): timed out after 500 ms
Cassandra Config:
I have also tried using DriverConfigLoader option by explicitly setting connection timeout as:
, but to no avail and same exception is being thrown. My current Spring boot version is 2.2.0.Release and I am not even specifying any timeout there and its working fine
Reference URL: https://stackoverflow.com/questions/63378497/spring-boot-2-3-1-release-and-cassandra-drivertimeout-issue
The text was updated successfully, but these errors were encountered: