Cassandra数据stax驱动程序更新4.4查询超时问题 [英] Cassandra data stax driver update 4.4 query timeout issues

查看:78
本文介绍了Cassandra数据stax驱动程序更新4.4查询超时问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的应用程序最近已升级到cassandra datastax驱动程序4.4.X.早期版本是3.3.升级后,我们注意到ex存在很多超时问题:

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:

  1. 初始化查询超时
  2. 会话查询超时
  3. 控制连接超时..
  4. 和其他超时参数在reference.conf中默认设置

以前,该参数曾经使用默认参数,但升级后,我们需要将其默认设置为>5秒.

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?

推荐答案

您需要至少升级到Java驱动程序4.8(更好是4.9)-以前的超时过于激进(0.5秒),在4.8中它已增加到5秒(通过修复 JAVA-2841 ).

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).

或者您可以只覆盖 application.conf 文件中的相应参数.

Or you can just override corresponding parameters in the application.conf file.

这篇关于Cassandra数据stax驱动程序更新4.4查询超时问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆