问题
our application was recently upgraded to cassandra datastax driver 4.4.X. Earlier it was on version 3.3. After the upgrade we noticed quite a lot of timeout issues for ex:
- init query timeout
- session query timeout
- control connection timeout..
- and other timeout parameters defaulted in reference.conf
Earlier this used to work with default parameter but after the upgrade we need to default this to > 5 seconds.
Have any one faced similar issue after the upgrade?
回答1:
You need to upgrade to at least Java driver 4.8 (better to 4.9) - previously timeouts were too aggressive (0.5 seconds), in 4.8 it was increased to 5 seconds (by fix of JAVA-2841).
Or you can just override corresponding parameters in the application.conf
file.
来源:https://stackoverflow.com/questions/64027079/cassandra-data-stax-driver-update-4-4-query-timeout-issues