-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【bug】批量insert丢数据问题汇总 #2589
Comments
现在使用的是Mycat-server-1.6.6.1-release-20190104121553.jar这个jar包,然后使用jdbc连接是8066/HAP_MYCAT?allowMultiQueries=true&zeroDateTimeBehavior=convertToNull这种,目前主要批量插入正常情况下没有问题,但是在压测的情况批量插入会出现批量插入超时的问题,导致应用层面出现The last packet successfully received from the server was 415,281 milliseconds ago. The last packet sent successfully to the server was 2 milliseconds ago.或者Caused by: java.net.SocketException: Connection reset或者Caused by: java.sql.SQLException: Could not retrieve transation read-only status server这样的错误。正常情况下没有问题。 |
@cy19900702 先把allowMultiQueries=false再测试下。Mycat-server-1.6.6.1版本不支持allowMultiQueries=true |
901bc47 修复内容如下:
测试代码:
|
问题
交流群里面很多同学反馈批量Insert 丢数据,此单集中处理
问题可能原因
此时,应用的SQL里面包含这种语句,或者连接mycat的驱动url里面带有allowMultiQueries=true参数,都会触发这种问题。
请务必设置allowMultiQueries=false. 群里面反馈的用navicat导入insert 文件,mycat 日志里面出现but no handler大体都是属于这类问题。
解决方案
The text was updated successfully, but these errors were encountered: