I need your assistance in better understanding how the Java driver calculates timeouts.
I use Apache Cassandra 3.11.4 and the latest Datastax Java driver (4.8).
I see the following timeout exceptions:
com.datastax.oss.driver.api.core.DriverTimeoutException Query timed out after 2 seconds.
I found that the default timeout is 2 seconds (for reads?), however, from Cassandra’s point of view, the highest latency I see is 4-5 milliseconds.
So I’m trying to understand how the driver calculates its timeout in relation to Cassandra’s. I believe that it’s different from the read_request_timeout_in_ms or the request_timeout_in_ms in the Cassandra yaml file, right?
Thanks a lot :-)