I have a few questions regarding the Java driver configuration and the below DriverTimeoutException that I fail to understand:
com.datastax.oss.driver.api.core.DriverTimeoutException Query timed out after 2 seconds.
As I understand, the default timeout of the driver is 2 seconds, whereas the default read timeout of the coordinator is 5 seconds. Shouldn't the driver have a timeout of at least 5 seconds as well?
To be more precise, what happens if the coordinator provides the data after 4 seconds for example?
Also, could it be that the driver gets a DriverTimeoutException because of excessive GC behavior or a high CPU load on the client itself, regardless of Cassandra or a specific query?
Thanks a lot!